chris-greening / instascrape

Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
https://chris-greening.github.io/instascrape/
MIT License
625 stars 109 forks source link

JSON list index out of range #133

Open Zelatrix opened 3 years ago

Zelatrix commented 3 years ago

I just discovered this program, and I've been following the tutorial to try and scrape a basic Instagram profile, but I keep getting the same error when I try and run it. Each time I try and run my code, I get an error message about the JSON index being out of range. I'm not really sure why this is happening, and I don't know how to fix it since I can't see the JSON data that's being scraped. The code I have is the following:

from selenium.webdriver import Chrome
from instascrape import *

webdriver = Chrome("F:/bin/chromedriver.exe")

headers = {
    "user-agent": <REDACTED>
    "cookie": <REDACTED>
}

profile = Profile('chris_greening')
profile.scrape(headers=headers)

If anyone can offer some advice on what I'm doing wrong or why the issue is occurring that would be appreciated.

albert239825 commented 2 years ago

I have the same issue