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

[BUG] Exception: Unable to parse yt initial info #251

Open
SurajBhari opened this issue Jul 21, 2024 · 3 comments
Open

[BUG] Exception: Unable to parse yt initial info #251

SurajBhari opened this issue Jul 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SurajBhari
Copy link

Basic information

  • Program version: 94ed3fe
  • Python version: 3.12
  • Operating system: Ubuntu 22.04 LTS

Describe the bug

Suddenly youtube is asking to "sign in to verify". obviously the only solution is to sign in (or provide signed in cookies).

This is very weird because it only seems to be happening on "digitalocean" IP's and not on AWS IP's.

Only solution is adding proper documentation for "cookies" args that is being used to go around this problem.

@SurajBhari SurajBhari added the bug Something isn't working label Jul 21, 2024
@nevmerzhitsky
Copy link

DigitalOcean's IPs were "blacklisted" on the YT side recently. So it's out of the library's scope maybe.

Only solution is adding proper documentation for "cookies" args that is being used to go around this problem.

Totally agree!

@SurajBhari
Copy link
Author

I think it would be helpful if I put up a little info how to use the cookies arg.

for this you would need Netscape HTTP Cookie File .
to get one you would need an extension that do it and a browser.
I personally used Firefox and This extension

go to youtube.com and use this extension to get both www.youtube.com and youtube.com cookies. merge them into 1 file

and pass that file location into the cookie argument.
on the otherside you can also use this cookies.txt file for something like ytdlp if you have use for that.

@KucingMangkal
Copy link

KucingMangkal commented Nov 29, 2024

I think it would be helpful if I put up a little info how to use the cookies arg.

for this you would need Netscape HTTP Cookie File . to get one you would need an extension that do it and a browser. I personally used Firefox and This extension

go to youtube.com and use this extension to get both www.youtube.com and youtube.com cookies. merge them into 1 file

and pass that file location into the cookie argument. on the otherside you can also use this cookies.txt file for something like ytdlp if you have use for that.

Thanks, it works.
image
You can use Cookie-Editor too.

I'm using this argument:

chat_downloader --cookies X:\chat-downloader\cookies.txt https://www.youtube.com/watch?v=XXXX --output test.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants