You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
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,
The text was updated successfully, but these errors were encountered: