alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
367 stars 108 forks source link

How to get image info given its url? #86

Closed gombru closed 6 years ago

gombru commented 6 years ago

Hi,

I need to get image metadata given image URL. I have seen that flickr.reflection.getMethodInfo(method_name="flickr.photos.getInfo") can do what I want. But how can I call this method?

alexis-mignon commented 6 years ago

Hello,

Sorry for the last reply.

There are two ways to retrieve informations from a picture:

import flickr_api
p = flickr_api.Photo(id="xxxxxxxxx")
p.getInfo()

or

from flickr_api.api import flickr
flickr.photos.getInfo(photo_id="xxxxxxxxx")