Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Discussion options

You must be logged in to vote

Hey @t-duan! I probably should've been clearer with the documentation, unfortunately instascrape can only request and scrape the initial static HTML served back in an HTTP request.

When you make a request to Instagram at say the #moon hashtag, they serve back the first 60 or so posts to construct the initial page and then as you navigate down the page, it dynamically loads more content giving you the infinite scroll. To scrape more posts, you'll have to use something such as Selenium to render the JavaScript and collect post shortcodes and then you can instantiate Post objects with those shortcodes and the library will handle the rest from there.

Like I said, I should've been clearer with…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@t-duan
Comment options

Answer selected by chris-greening
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants