DEV Community

Discussion on: Python Selenium Infinite Scrolling

Collapse
 
milosblagojevic profile image
Milos-Blagojevic

Hi, thanks so much for the post, it really helped me a lot.
Do you by any chance know why when scrolling through page that has a lot of content I get different results, in a sense that page doesn't always end with the same content, even though it is clearly seen that it reached the end of the page?
For instance I have been trying to scrape posts from an instagram page that has more than 50000 posts and almost everytime I get different results and never do I get even near 50000. Closest I got to was around 20000, but most of the time it is between 5 and 10 thousand.
Do you think this is Instagram related or it has to do with my code?
Any thought will be appreciated.
Thanks in advance :)

Collapse
 
mr_h profile image
Huxley

Could be Instagram trying to stop scraping or could be a issue with your code could also be a issue with the page to loading in time