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

JSON list index out of range #133

Open
Zelatrix opened this issue Jun 29, 2021 · 1 comment
Open

JSON list index out of range #133

Zelatrix opened this issue Jun 29, 2021 · 1 comment

Comments

@Zelatrix
Copy link

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
Copy link

I have the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants