flickrer - automatic Flickr uploading

  • warning: Invalid argument supplied for foreach() in /home/locker/www/randomfoo.net/htdocs/code/modules/filter.module on line 592.
  • user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR format = 1' at line 1 query: SELECT * FROM filter_formats WHERE OR format = 1 in /home/locker/www/randomfoo.net/htdocs/code/includes/database.mysql.inc on line 108.
by lhl ( | | | )

Here's a script I've been using for the past couple of weeks since I started really using Flickr.

Requires:

File::Basename
File::Copy
LWP::UserAgent
Flickr::Upload

Should be an easy breezy install w/ CPAN (perl -MPCAN -e shell)

flickrer first checks that it isn't already running via a process search, then looks the files from the dropbox and locks (via . rename) while uploading. This makes it pretty safe to run at regular intervals via cron. Once it finishes it moves the file to the sentbox. I run sips, OS X's built in image processing utility to reduce the size of the images, as even w/ a Pro account (1GB/mo), u/ling full photo files would be quickly pass quota.

AttachmentSize
flickrer2.5 KB