sybrenstuvel / flickrapi

Python Flickr API implementation
https://stuvel.eu/flickrapi
Other
155 stars 33 forks source link

Search with parameter similarity_id #105

Closed parasange closed 6 years ago

parasange commented 6 years ago

Is it possible to search for images not on basis on a keyword/tag ("leaves"), but rather walk through all images that are similar (and may have different tags)? There exists a similarity_id for that (e.g. www.flickr.com/search/?similarity_id=15342454800), but is it usable within FlickrAPI?

It doesn't seem to give right results when adding similarity_id=15342454800 to function constructor

sybrenstuvel commented 6 years ago

Can you give me a minimal but complete example that shows your issue?

parasange commented 6 years ago

Of course. An example request for a result like the above mentioned link would be

flickr = flickrapi.FlickrAPI(flickrKey, flickrSecret)
photos = flickr.walk(api_key=flickrApiKey,
                               text=keyword,
                               #similarity_id=15342454800,
                               tag_mode='all',
                               extras='url_o',
                               license='2',
                               sort='relevance',
                               content_type=1,
                               media='photos',
                               per_page=10)`
sybrenstuvel commented 6 years ago

api_key=flickrApiKey

This isn't required on the flickr.walk() call, as you've already created a FlickrAPI instance with that key.

text=keyword

The keyword name isn't defined, so I can't even run this example as-is. Furthermore, the script doesn't output anything, so I can't compare any expected output with the actual output of the script. I asked for a complete example so that I can actually debug the issue and figure out what's going wrong.

sybrenstuvel commented 6 years ago

Closing this issue due to inactivity.