chris-greening/instascrape

JSON list index out of range

Zelatrix opened this issue · 1 comments

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.

I have the same issue