Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram change something! index Error. #1034

Closed
erfan-sams opened this issue Oct 18, 2023 · 1 comment
Closed

Instagram change something! index Error. #1034

erfan-sams opened this issue Oct 18, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@erfan-sams
Copy link

Describe the bug

IndexError: list index out of range

jsonData = r.text.split('<script type="text/javascript">window._sharedData = ')[1].split(';</script>')[0] # May throw an IndexError if Instagram changes something again; we just let that bubble.

How to reproduce

just get entity from any Instagram class

Expected behaviour

Got error!

Screenshots and recordings

No response

Operating system

ubuntu 23.04

Python version: output of python3 --version

3.11

snscrape version: output of snscrape --version

for post in scraper.get_items():

Scraper

InstagramUserScraper

How are you using snscrape?

Module (import snscrape.modules.something in Python code)

Backtrace

No response

Log output

No response

Dump of locals

No response

Additional context

No response

@erfan-sams erfan-sams added the bug Something isn't working label Oct 18, 2023
@JustAnotherArchivist JustAnotherArchivist added duplicate This issue or pull request already exists and removed bug Something isn't working labels Oct 18, 2023
@JustAnotherArchivist
Copy link
Owner

#520

@JustAnotherArchivist JustAnotherArchivist closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants