Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.76k stars 2.16k forks source link

Run python3 main.py error #70

Closed benbangli78 closed 3 years ago

benbangli78 commented 3 years ago

python3 main.py Traceback (most recent call last): File "main.py", line 4, in from src.Osintgram import Osintgram File "/opt/Osintgram/src/Osintgram.py", line 19, in class Osintgram: File "/opt/Osintgram/src/Osintgram.py", line 22, in Osintgram geolocator = Nominatim() File "/usr/local/lib/python3.8/dist-packages/geopy/geocoders/nominatim.py", line 105, in init raise ConfigurationError( geopy.exc.ConfigurationError: Using Nominatim with default or sample user_agent "geopy/2.0.0" is strongly discouraged, as it violates Nominatim's ToS https://operations.osmfoundation.org/policies/nominatim/ and may possibly cause 403 and 429 HTTP errors. Please specify a custom user_agent with Nominatim(user_agent="my-application") or by overriding the default user_agent: geopy.geocoders.options.default_user_agent = "my-application".

Datalux commented 3 years ago

@benbangli78 in file Osintgram.py replace line 22 geolocator = Nominatim() with geolocator = Nominatim(user_agent="http")