Open yay-whyawhy opened 5 months ago
I think what happened is that geopy thinks you need an API key, but Nominatim removed the need for that. Unfortunately, geopy's code still reflects that you need one. This is what I did to comment out the geopy error and access Nomnatim:
In terminal: vi /usr/local/lib/python3.9/dist-packages/geopy/geocoders/nominatim.py :105 Press shift+I to edit the code. Add a # before each line in raise ConfigurationError( ..... ) , and add a line that says pass right above. Then, type esc :wq
Thank you for your assistance. However, I've added a '#' at line 60 in 'src/Osintgram.py' like so: '#self.following = self.check_following()'. This adjustment has been beneficial, but I'm uncertain if it's correct. Additionally, I've encountered numerous errors with different tools such as BlackEye and Anonymous. I would appreciate your guidance. Is there a preferred method for me to reach out to you, perhaps via an ID or another means
that's the error that i facing Traceback (most recent call last): File "/home/abdullah/Downloads/Osintgram-CLI/main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/abdullah/Downloads/Osintgram-CLI/src/Osintgram.py", line 19, in
class Osintgram:
File "/home/abdullah/Downloads/Osintgram-CLI/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/usr/local/lib/python3.9/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.4.1" 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"
. help me if you are a hacker!!!!!