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

... #11

Closed
Gameye98 opened this issue Jun 3, 2020 · 5 comments
Closed

... #11

Gameye98 opened this issue Jun 3, 2020 · 5 comments

Comments

@Gameye98
Copy link

Gameye98 commented Jun 3, 2020

[+] getting profile ...Traceback (most recent call last):
  File "main.py", line 16, in <module>
    ig = main(user=args["username"])
  File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 58, in __init__
    self.get_profile()
  File "/data/data/com.termux/files/home/osi.ig/.lib/api.py", line 65, in get_profile
    self.data = json.loads(more_data[3].get_text()[21:].strip(';'))
  File "/data/data/com.termux/files/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/data/data/com.termux/files/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/data/data/com.termux/files/usr/lib/python3.8/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)
@DjChart
Copy link

DjChart commented Jun 10, 2020

Tengo el mismo problema! Help!!!

@radryry
Copy link

radryry commented Jun 11, 2020

Found a fix. (I know next to nothing about Linux/termux/hacking ect. as a whole so don't judge) I don't know if it will be the same for you but try "2to3 . -w" and that should rewrite all your py2 script to py3. My other tools were fixed aswell but if you want to fix something specific like I did for trape try "2to3 -w trape" sorry if I'm writing all this wrong but I guess I'm a script kiddy?.. w. E that means.
-cowabunga dudes - follow my IG and say hi @rad.ryry

@th3unkn0n
Copy link
Owner

@Gameye98 u running on bs4 v4.6.0 ?

@Gameye98
Copy link
Author

the version of up-to-date module on python3 is

beautifulsoup4 (4.9.1)
bs4 (0.0.1)

@th3unkn0n
Copy link
Owner

th3unkn0n commented Jun 14, 2020

it wont work on new versions you have to downgrade to 4.6.0

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

4 participants