bellingcat / instagram-location-search

Finds Instagram location IDs near a specified latitude and longitude.
https://pypi.org/project/instagram-location-search/
MIT License
573 stars 83 forks source link

Error using instagram_locations #15

Closed Ashoka74 closed 1 year ago

Ashoka74 commented 1 year ago

I tried to use the python library to get locations but I got this error :

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

This is my code :

Python version 3.8.2

from instagram_locations import instagram_locations

instagram_locations.get_instagram_locations(lat=40.7128, lng=-74.0060, cookie="COOKIE" )

Ashoka74 commented 1 year ago

My bad I was using the wrong 'cookie' from instagram developer window.

After following the tutorial on the page it worked perfectly 👍