NTRSTNG (OS X)

This little Perl script called →ntrstng← will fetch the Flickr 'interesting photos' page from 2 days ago (to give the photos time to gather enough interestingness) into a specified folder, which you can then set as the image folder for your screensaver (that's what I'm doing with it, anyway).

Run it daily with cron and the old images will be moved into an archive folder, so the screensaver will have fresh images each day.

To fetch images from other Flickr feeds, use Flickrdesk.

Update: Peter Li has made a version of ntrstng that runs on Windows, under Cygwin (I haven't tested it yet).

Comments

Is it possible to change the number of pics downloaded using this script? I want to download more than 10 pics at one time.

That should be possible - you'd need to fetch the URLs ending in /page2, /page3 etc.

Nice idea. I am adapting it for Cygwin, can post back if you'd like. Flickrdesk is 404.

Posted by: Peter on August 9, 2005 8:54 PM

Thanks, I've fixed the flickrdesk link.

It seems this script don't run properly today due to Flickr.com changed the URL pattern. Do you have any idea?

I changed Line 36-40 to suit the change of flickr's URL pattern

36 while ($page =~ m|<td class="DayPic">\s*<a href="(.*?)" title=".*?"><img src="(http://.*?)/(.*?)/(.*?)_m.jpg" width="\d*" height="\d*" alt=".*?" /></a>\s*</td>|gis){
37
38 $html_url = "http://flickr.com".$1;
39 $img_url = "$2/$3/$4"."_o.jpg";
40 $file = "$img_dir/$4.jpg";

Thanks for catching that change - I've uploaded a new version.

This script doesn't work now. Flickr changed URL pattern for the files:
http://farm1.static.flickr.com/148/411358409_119b15e3bf_m.jpg
http://farm1.static.flickr.com/148/411358409_8a7c125714_o_d.jpg

Look at the second string of numbers in the file name?

Can you modify the script to make it work?

Unfortunately it looks like there's a kind of checksum that changes between the medium-sized and full-sized images. Might have to fetch more pages to get around it...

Posted by: Author Profile Page alf on March 6, 2007 6:04 AM

All fields are optional, email address will not be shown; no HTML, URLs are automatically hyperlinked.