ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.95k stars 612 forks source link

api.list_collections doesn't support pagination (max_id). #321

Open fabiocaccamo opened 3 years ago

fabiocaccamo commented 3 years ago

Before submitting an issue, make sure you have:

Which client are you using?


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