I can’t get this to work… what could be the problem?
import flickrapi
api_key = '1234...'
flickr = flickrapi.FlickrAPI(api_key)
user = '43699959@N02'
favs = flickr.favorites_getPublicList(user_id = user)
>>> favs.items()
[('stat', 'ok')]
>>> favs.text
'\n'
Where are my favorite photo’s?
Note: It does work via this testing page: http://www.flickr.com/services/api/explore/?method=flickr.favorites.getPublicList
The result is correct — as per the URL you gave, the XML nodes are empty (plus/minus newline and whitespace characters, apparently).
favs.textwould return the content, but what you’re looking for is in the attributes. Try this:Result:
Or for all child nodes, starting from the root:
Result: