-
Notifications
You must be signed in to change notification settings - Fork 773
Open
Labels
Description
Hi, I want to use snscrape for collect instagram data. My code is:
import snscrape.modules.instagram as sninstagram
import pandas as pd
query='google' #change name
ins_s=[]
limit=10
for ins in sninstagram.InstagramHashtagScraper(query).get_items():
print(vars(ins))
break
And I got this error:
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.
IndexError: list index out of range
How can I fix it?