apify / apify-client-python

Apify API client for Python
https://docs.apify.com/api/client/python/
Apache License 2.0
46 stars 11 forks source link

Get max_no_of_posts using insta_posts_scraper #128

Closed hamza1424 closed 1 year ago

hamza1424 commented 1 year ago

We can't retrieve all posts for a user, it only returns posts from the first page: Here is our script:


from apify_client import ApifyClient

from apify_client import ApifyClient
apify_client = ApifyClient('token')

actor_call = apify_client.actor('apify/instagram-post-scraper').call(run_input={'username' : ['username'], "limit": 100}, )
### get dataset and posts 
dataset_items = apify_client.dataset(actor_call['defaultDatasetId']).list_items().items

Is there any way work around to fix this?

fnesveda commented 1 year ago

Hi, I see you've also opened the same issue directly on the Instagram Post Scraper, which is the correct place for this problem. I will close this issue here, as the problem is not directly related to the Python API client.