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".
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 customuser_agent
withNominatim(user_agent="my-application")
or by overriding the defaultuser_agent
:geopy.geocoders.options.default_user_agent = "my-application"
.