-
-
Notifications
You must be signed in to change notification settings - Fork 87
Description
Describe the bug
Error from Geopy: 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.
Error seems to be coming from: /Giveme5W1H/extractor/extractors/environment_extractor.py line 55.
To Reproduce
Fresh install on Mac OS, attempting to run sample code for a single text from the examples directory. Using a virtual env for installing python modules.
Expected behavior
Get 5Ws from sample text.
Log
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 custom user_agent with Nominatim(user_agent="my-application") or by overriding the default user_agent: geopy.geocoders.options.default_user_agent = "my-application".
Versions (please complete the following information):
- OS: Mac OS 14.1.1
- Python 3.11
- GeoPy 2.4.1
- Giveme5W1H 1.10.18
- Stanford CoreNLP NLTK 3.8.1