So, I’d like to have a current traffic map delivered to my e-mail at the precise moment I’m leaving work for the day. Call me lazy, but this is the sort of thing that can be automated pretty easily and I don’t want to go look it up, I want it delivered. Someday, I’ll get around to setting this up, but as they say, a journey begins with a single step. In this case, the step is to find a way a good to download Google Maps with a script. For now, that is the scope of this post.
Here’s some initial research to plow through:
Mapki: Google Map Parameters Best reference so far!
Google Static Maps API*
A PERL/Wget solution
A Python script
MapTileCacher in PERL
Discussion on Google blocking tile downloads
* On 2/7/2012, I tried using the Google Static Maps API and received Error 400 (malformed or illegal request) when using the URL described therein. I have had more luck using Google Maps directly to frame the map, getting the (perma)link, and tweaking the parameters.
Comments Off on Getting Google Maps
One risk of keeping my notepad online is the eventual disappearance of WordPress.com. Backing up my ‘blog is of utmost importance. WordPress has a built-in export function, which I do use, but it is most useful for reloading the ‘blog into a WordPress-driven site. I also wanted a way to create a local copy of my notepad for local browsing and for quick upload to a non-Wordpress site if the need arose. Enter, wget.
Wget is one very useful tool. In a nutshell, it gets files, even entire sites, from the Web. I did a quick search and found this posting that provides a recommended set of command line options. I removed the -w and -H parameters and limited the -D parameter to my ‘blog only. Also, I used the shorter flags for brevity (e.g. -m for –mirror, -k for –convert-links, etc.).
wget -m -p –E -k -Dbrandonsnotepad.wordpress.com -P ~/var/tmp/Notepad https://brandonsnotepad.wordpress.com
Now I can keep a local copy or even burn it to for use on other machines.
Comments Off on Back Up WordPress ‘Blog With Wget