Skip to content

Instantly share code, notes, and snippets.

@thruflo
Created February 28, 2010 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thruflo/317558 to your computer and use it in GitHub Desktop.
Save thruflo/317558 to your computer and use it in GitHub Desktop.
import flickrapi
client = flickrapi.FlickrAPI(
config.FLICKR_API_KEY,
config.FLICKR_API_SECRET,
store_token = False
)
try:
rsp = client.people_getInfo(user_id=flickr_data['user']['nsid'], format='json')
data = demjson.decode(rsp[14:-1], encoding='utf8')
return data['person']
except (IOError, flickrapi.FlickrError, urlfetch.DownloadError), e:
logging.info(e, exc_info=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment