instagram_private_api
instagram_private_api copied to clipboard
api.list_collections doesn't support pagination (max_id).
Before submitting an issue, make sure you have:
- [x] Updated to the lastest version v1.6.0
- [x] Read the README and docs
- [x] Searched the bugtracker for similar issues including closed ones
- [x] Reviewed the sample code in tests and examples
Which client are you using?
- [x] app (
instagram_private_api/) - [ ] web (
instagram_web_api/)
Describe the Bug/Error:
Actually calling api.list_collections doesn't support pagination using the max_id parameter because the method doesn't accept parameters nor *args / **kwargs.
As workaround I am calling the internal _call_api method passing the endpoint url and the page parameter:
next_max_id = response.get('next_max_id')
collections = api._call_api('collections/list/', query={'max_id':next_max_id })
Paste the output of python -V here:
Python 3.8.6