Answer the question
In order to leave comments, you need to log in
How to get other photos from the album that contains the current photo?
Let's say I opened a photo on Flickr, on the right (see screenshot) it is also suggested to see other photos of the album that contains this image. How can I get these photos using the API?
A very long googling showed that the truth is in the application of the method flickr.photos.getAllContexts
( link ), but it is not clear how to apply it. Maybe someone figured it out and understood?
So far, I've only been able to get the ID of the current picture ( photo_id
) and api_key
.
However, when called, I get only something like:
for photo_id in ids:
im = flickr.photos.getAllContexts(api_key=api_key, photo_id=photo_id)
print(im)
# output: <Element rsp at 0x1139c4408>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question