Comments (9)
Move to the src directory (/[...]/Osintgram/src/).
Edit the Osintgram.py script (vi Osintgram.py).
Edit "geolocator = Nominatim()" to read "geolocator = Nominatim(user_agent="http")".
For me, this appeared on line 22.
Source I used to understand the problem: https://stackoverflow.com/questions/52600278/correct-way-to-use-geopy-nominatim
Hope this helps!
from osintgram.
got the same issue, please help us
from osintgram.
Install it via pip pip install geopy
from osintgram.
Now, i've got a new issue;
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/wikyo/Osintgram/src/Osintgram.py", line 19, in
class Osintgram:
File "/home/wikyo/Osintgram/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/home/wikyo/.local/lib/python3.8/site-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"
.
from osintgram.
Can you try to use the development branch?
Did you use Python 3.9?
from osintgram.
I don't know how to install python 3.9
from osintgram.
Now, i've got a new issue;
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/wikyo/Osintgram/src/Osintgram.py", line 19, in
class Osintgram:
File "/home/wikyo/Osintgram/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/home/wikyo/.local/lib/python3.8/site-packages/geopy/geocoders/nominatim.py", line 105, in init
raise ConfigurationError(
geopy.exc.ConfigurationError: Using Nominatim with default or sampleuser_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"
.
got the same prob
edit: tried setting python 3.8 as higher priority but then installed python 3.9 unless i installed it wrong but no luck
from osintgram.
thx
from osintgram.
No problem; hope it's humming along nicely now!
from osintgram.
Related Issues (20)
- How to Solve this HOT 1
- error code 400 HOT 3
- this error message: ClientError Bad Request: block_eu_user_login_in_old_app (Code: 400, Response: {"message":"You'll need to update Instagram to the latest version before you can use the app.","status":"fail","error_type":"block_eu_user_login_in_old_app"})You'll need to update Instagram to the latest version before you can use the app.: Bad Request: block_eu_user_login_in_old_app HOT 3
- data HOT 1
- ClientError invalid_user (Code: 400, Response: {"message": "The username you entered doesn't appear to belong to an account. Please check your username and try again.", "status": "fail", "error_title": "Incorrect username", "buttons": [{"title": "Try Again", "action": "dismiss"}], "invalid_credentials": true, "exception_name": "UserInvalidCredentials", "error_type": "invalid_user"})The username you entered doesn't appear to belong to an account. Please check your username and try again.: invalid_user HOT 1
- ClientError Bad Request: block_eu_user_login_in_old_app (Code: 400, Response: {"message":"You'll need to update Instagram to the latest version before you can use the app.","status":"fail","error_type":"block_eu_user_login_in_old_app"})You'll need to update Instagram to the latest version before you can use the app.: Bad Request: block_eu_user_login_in_old_app HOT 2
- Error parsing error response: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/home/kali/.local/lib/python3.11/site-packages/instagram_private_api/client.py", line 523, in _call_api response = self.opener.open(req, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HOT 4
- followed instructions until python3 main.py (username) but an error keeps happening HOT 3
- what wrong ???? HOT 2
- Error when begin The Osintgram - Error parsing error response: Expecting value: line 1 column 1 (char 0) HOT 4
- #1037
- traceback (most recent call back) HOT 1
- Error in Osintgram HOT 1
- Gd
- Osintgram is broken HOT 1
- How solve annan
- ClientError Bad Request HOT 2
- attempt to login
- JSONDecodeError HOT 1
- Mspy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osintgram.