whyynoot/Likee-Video-Downloader

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Opened this issue · 5 comments

python3 main.py
Enter Likee page url: https://likee.video/*********
Getting user info...
Traceback (most recent call last):
File "main.py", line 63, in
main()
File "main.py", line 58, in main
user_info = get_user_info(get_user_uid(input("Enter Likee page url: ")))
File "main.py", line 15, in get_user_uid
final = json.loads(final.replace(";", ''))
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Hello! For me every thing works fine!

I suggest u are trying to enter the video link, but u have to enter PROFILE LINK, and programm will download ALL videos from profile.

image

Maybe sometime, i will add feauture to download only one video from profile, but now U CAN DOWNLOAD ALL VIDEOS FROM PROFILE BY A PROFILE LINK.

Example input: https://likee.video/@_ket_fom_/
(dont know who is this, but i think she wont be angry for me doing this)

Sorry to telll you I eddited the url before posting with **** , I put a complete url profile, like now:
https://imgur.com/a/gplFWLC If don't misssing something.

Don't know why don't work, everything is updated, Ubuntu kernel 5.0.0-32-generic.

Thanks

I checked the account u are trying to act with.

I am currently getting this:
/@Nadia.Vilaplana6/ screenshot

I don't know why download is not starting, I suggest because the profile is maybe private or smth. Because it is showing that the user has 65 videos, but none of them are showed to me.
Empty VideoList

But, about your error, dont know why are u getting this. Something is wierd in Likee i suggest.
Because this error is about getting json format from the main page. Did u edit some code trying to add auth?

likee It's very weird in fact, page acts differently sometimes show videos, sometimes not, plus the app in android that is another thing... I'm watching close likee.video

No, I did not edited nothing

Ah the url is "random", I don't want nothing from that likee profile.

Okay, can u change the 15 line
final = json.loads(final.replace(";", ''))
To this

final = final.replace(";", '')
print(final)
final = json.loads(final)

And show me the output of the code u are getting this time.