th3unkn0n / osi.ig

Information Gathering Instagram.
1.27k stars 211 forks source link

Code error #37

Open CodeForg opened 3 years ago

CodeForg commented 3 years ago

Traceback (most recent call last): File "/home/tea_enjoyer/Desktop/osi.ig/main.py", line 16, in user_info(usrname=args["user"]) File "/home/tea_enjoyer/Desktop/osi.ig/.lib/api.py", line 70, in user_info js = json.loads(resp_js) File "/usr/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Not working idk why :( (Can you help please)

th3unkn0n commented 3 years ago

is it happening for all account or one ?

CodeForg commented 3 years ago

For all

CodeForg commented 3 years ago

U can help me with that ?

th3w4lk3r commented 3 years ago

I have the same problem

shurygindv commented 3 years ago

https://stackoverflow.com/questions/57627864/instagram-user-page-parsing-with-proxy-without-api

probably, it's the restriction when unauthorized/suspicious using Instagram API

the same when proxy: getting response Login HTML page instead of enriched user data (and json.loads func throws an exception about unable parsing),

th3unkn0n commented 3 years ago

@shurygindv yes @CodeForg there is way to kind of prevent this via login through insta acc but it will still block if too much requests are made so whole thing becomes pointless

Ajay-singh1 commented 3 years ago

Giving code error.I think instagram is blocking suspicious application using the instagram API.

C4l1b3r commented 3 years ago

OK what I did to make it work (I'm on termux) if not installed.pip install pipenv pipenv install -r requirements.txt pipenv shell python main.py --user

mzr-d3bz commented 3 years ago

so how?

TheETR commented 2 years ago

Still have the same error (Im also on termux)