walk_set(self, photoset_id, per_page=50, ...)
source code
Other arguments can be passed, as documented in the flickr.photosets.getPhotos API call in the Flickr API documentation, except for page because all pages will be returned eventually.
如果我只想要20个结果,我怎么能做到呢?否则,它只需继续运行并获取数据
谢谢你
如getPhotos所述,您可以:
如果只需要20张照片,请不要使用}。在
walk_set
,因为它的目的是迭代一组中的所有照片。直接使用flickr.photosets.getPhotos
,并指定per_page=20
和{相关问题 更多 >
编程相关推荐