0
的documentation說Python Flickr API套件:如何限制結果數量?
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個結果,我該怎麼辦呢?否則,它只是繼續運行並獲取數據
謝謝
這實際上並不是適當的解決方案。 'walk_set'是爲了遍歷集合中的所有照片。您通過傳遞'per_page'來更改的是您在一個批次中獲取的照片數量。 –