InstaPy / instagram-profilecrawl

đź“ť quickly crawl the information (e.g. followers, tags etc...) of an instagram profile.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get location latitude and longitude not working

sejaldua opened this issue · comments

something goes wrong in between

url = 'https://www.instagram.com/explore/locations/' + str(location_id) + '/?__a=1'
response = requests.get(url)

and

data = response.json()
lat = data['graphql']['location']['lat']
lng = data['graphql']['location']['lng']

tried to debug this with print statements and i'm getting a JSONDecodeError when trying to call response.json()

does anyone know what is going on here?

Instagram has delete this value in graphql in some locations.