Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters to FlickrAPI does not include the "relevant" parameter #12

Open
AdamNiem opened this issue Jan 22, 2024 · 0 comments
Open

Parameters to FlickrAPI does not include the "relevant" parameter #12

AdamNiem opened this issue Jan 22, 2024 · 0 comments

Comments

@AdamNiem
Copy link

AdamNiem commented Jan 22, 2024

Hello, I tried to use your flickr-scrape code and was having trouble getting images that related to the search queries I was providing. I assume flickr api has changed and so now a "relevant" parameter is needed to provide results relevant to your search query. Here is the only change needed for it to work again (I removed content_type as well although that shouldn't have an effect):
Old
params = { 'content_type': '7', 'per_page': '500', 'media': 'photos', 'format': 'json', 'advanced': 1, 'nojsoncallback': 1, 'extras': 'media,license,realname,%s,o_dims,geo,tags,machine_tags,date_taken' % ('url_o' if original else 'url_l'), #url_c,url_l,url_m,url_n,url_q,url_s,url_sq,url_t,url_z', 'page': page, 'api_key': KEY }
New
params = { 'sort': 'relevance', 'privacy_filter': 1, 'per_page': '500', 'format': 'json', 'advanced': 1, 'nojsoncallback': 1, 'extras': 'media,license,realname,url_o, url_k, url_h, url_l, url_c,o_dims,tags,machine_tags', #url_c,url_l,url_m,url_n,url_q,url_s,url_sq,url_t,url_z', 'page': page, 'api_key': KEY }

I hope you find this is useful,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant