Use the Views module to query external services like Flickr. It's possible thanks to a new patch that adds support for switchable data sources.