InstaPy / instagram-profilecrawl

📝 quickly crawl the information (e.g. followers, tags etc...) of an instagram profile.
MIT License
1.15k stars 243 forks source link

get location latitude and longitude not working #156

Closed sejaldua closed 4 years ago

sejaldua commented 4 years ago

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?

timmoh commented 4 years ago

Instagram has delete this value in graphql in some locations.