T
T
Timebird2019-07-07 23:38:29
Python
Timebird, 2019-07-07 23:38:29

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?
5d2258039b490360697124.png
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>

How to get as a result other photos from the album of this photo?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2019-07-08
@Moskus

An example of interacting with the API in general:
https://idratherbewriting.com/learnapidoc/docapis_...
"Album" in terms of the Flickr API is called a photoset, this will help you in your search.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question