How can I get one photo for every Flickr tag by a specific user in one request?

孤人 提交于 2019-12-06 06:50:32

You could use the flickr.people.getPhotos method to get information about all of a user's photos (maximum 500 per page), and add extra=tags to the parameters for the call. Then you can do the per-tag selection in memory. This will require fewer API calls unless the user uses less than 1 unique tag per 500 photos in their account, at the cost of larger API responses and more memory use and computation within your script.

(This only meets your "one request" criteria for users with fewer than 500 photos).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!