smdown.pl - Unix command-line album downloader

darryldarryl Registered Users Posts: 997 Major grins
Hi -- a while back I wrote a quick and dirty album downloader in Perl that scraped the HTML from your albums, grabbed links to the originals, and used curl to download the images.

One drawback to the hack was that it didn't get your files back to their original filename.

Well, I finally sat down, figured out this Smugmug API thing, and wrote myself a new version.

Basically it works like this:

smdown.pl --login login --password password http://your.smugmug.com/album

If you use John Ruttenberg's great sm_tool.py for uploading, your .smugmugrc file with login: and password: should work for smdown.pl as well, meaning you won't have to use --login and --password every time you call this script.

It requires a few fairly standard Perl modules (XML::Simple, Getopt::Long and File::Spec) and it makes calls to curl to actually talk to the Smugmug website. These come standard on most Linux/FreeBSD boxes, as well as OS X. You might be able to get this script to work in Windows as well, but I don't have the time nor inclination to test this.

Here's the link: http://www.darryl.com/smdown/

Feedback welcome. Enjoy!

Comments

Sign In or Register to comment.