DEV Community

Discussion on: Scraping every post on an Instagram profile with less than 10 lines of Python

Collapse
 
10deepaktripathi profile image
Deepak Tripathi

Hi Chris,
I tried running the above code, but i keep on getting below error. I have put my valid session id.

"Instagram is redirecting you to the login page instead of the page you are trying to scrape. This could be occuring because you made too many requests too quickly or are not logged into Instagram on your machine. Try passing a valid session ID to the scrape method as a cookie to bypass the login requirement"