Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code error #37

Open
CodeForg opened this issue Jan 5, 2021 · 10 comments
Open

Code error #37

CodeForg opened this issue Jan 5, 2021 · 10 comments

Comments

@CodeForg
Copy link

CodeForg commented Jan 5, 2021

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
Copy link
Owner

is it happening for all account or one ?

@CodeForg
Copy link
Author

CodeForg commented Jan 5, 2021

For all

@CodeForg
Copy link
Author

CodeForg commented Jan 6, 2021

U can help me with that ?

@th3w4lk3r
Copy link

I have the same problem

@shurygindv
Copy link

shurygindv commented Jan 7, 2021

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
Copy link
Owner

@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
Copy link

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

@C4l1b3r
Copy link

C4l1b3r commented May 19, 2021

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
Copy link

so how?

This was referenced Nov 10, 2021
@TheETR
Copy link

TheETR commented Dec 26, 2021

Still have the same error (Im also on termux)

This was referenced Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants