Open Matthijz98 opened 1 year ago
This maps to the getSizes() API request, which means it likely returns a dict
https://www.flickr.com/services/api/flickr.photos.getSizes.html
Yes i expected a dict as well but print(type(size)) # <class 'str'>
said it is a string.
That's because the keys of the dictionary are strings, and you are iterating over the keys in that loop. Try print(type(api_photo.getSizes())
.
Hi maybe i am doing something wrong but why does photo.getSizes() returns a string?