NORDLING
Updated 49 days ago
Flickr has a pretty cool API - lots of options, lots of filtering. In my case, I wanted to show the city I was in and that means a cityscape photo. The script takes the city name from the Swarm lookup and then goes to Flickr and searches for large images with the <city_name> + <sky conditions> as the search terms. It then sorts the results by "interestingness" and gathers the top ten most interesting matching images. This, plus the weather data and time, is written to a JSON file whenever my cron job is fired.