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

ERROR: [youtube] : Sign in to confirm you’re not a bot. This helps protect our community #60

Open
YifanXu74 opened this issue Jul 10, 2024 · 18 comments

Comments

@YifanXu74
Copy link

Hi,

I recently tried downloading the dataset, but it comes out such error:

ERROR: [youtube] ---LyFa59Go: Sign in to confirm you’re not a bot. This helps protect our community

It seems that YouTube has updated some policies to block web crawlers using yt-dlp. I tried to address the problem using a solution here, but but soon hit the request limit and was blocked again, see:

[youtube+oauth2] -2WrOGUnUHM: You’ve hit the request limit.. Your limits will reset soon, usually within an hour.

This dataset is important for my research. I'd appreciate any clues or solutions on this problem!

@sun-yanjun
Copy link

Hi, have you solved this problem? I’m facing the same issue.

@Chuge0335
Copy link

Same error, is there any better solutions?

@DmytroUsenko
Copy link

I'll subscribe to this error as well. I got the same thing using youtube-dl, though.

@Abdurrafey-Siddiqui
Copy link

Same error, subscribed

@taiyouZhang
Copy link

same

@GizuMoca
Copy link

Has anyone found a solution?
How many accesses will cause the limit?

@Chuge0335
Copy link

Same error

1 similar comment
@weihxx
Copy link

weihxx commented Aug 15, 2024

Same error

@Hzzone
Copy link

Hzzone commented Aug 23, 2024

This issue usually arises when using yb-dlp to download YouTube videos, which I also experienced. You can resolve it by exporting cookies from your web browser to facilitate video downloads. However, be aware that YouTube may ban your account.

@DmytroUsenko
Copy link

This issue usually arises when using yb-dlp to download YouTube videos, which I also experienced. You can resolve it by exporting cookies from your web browser to facilitate video downloads. However, be aware that YouTube may ban your account.

could you share more details please how did you pass cookies?

@Hzzone
Copy link

Hzzone commented Aug 23, 2024

I used the following shell command to download videos:

command = f'yt-dlp -o {video_path} --cookies {cookies_path} -f \"{format_string}\" {url}'

I export YouTube cookies using this extension: https://chromewebstore.google.com/detail/cclelndahbckbenkjhflpdbgdldlbecc. However, cookies expire after a while, so I need a way to automatically obtain new ones.

@DmytroUsenko
Copy link

DmytroUsenko commented Aug 25, 2024

unfortunately this does not work for me (

[youtube] Extracting URL: https://www.youtube.com/watch?v=UAna0bJUhhw
[youtube] UAna0bJUhhw: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[debug] [youtube] Copying __Secure-3PAPISID cookie to SAPISID cookie
[youtube] UAna0bJUhhw: Downloading ios player API JSON
[youtube] UAna0bJUhhw: Downloading web creator player API JSON
ERROR: [youtube] UAna0bJUhhw: Sign in to confirm you’re not a bot. This helps protect our community. Learn more

@DmytroUsenko
Copy link

UPD. Fixed this issue today with this: https://github.com/coletdjnz/yt-dlp-youtube-oauth2

@fangqi-Zhu
Copy link

Is it possible to integrate this process into the download tutorial for this repository?

@pikeyang
Copy link

UPD. Fixed this issue today with this: https://github.com/coletdjnz/yt-dlp-youtube-oauth2

Can you explain in detail how it was done

@deconasser
Copy link

Do you have another solution for this issues ? I found troublesome with export cookies!

@LuigiNixy
Copy link

The videos can be downloaded with pytubefix.

@jingwangsg
Copy link

@LuigiNixy Hi, can you still use pytubefix to massively download videos now?

ultranity added a commit to ultranity/Panda-70M that referenced this issue Dec 22, 2024
also Pulled to upstream: iejMac/video2dataset#353

make it possible to easily support options like proxy & cookies as defined in https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py when downloading, helpful to fix issue like snap-research#60 snap-research#62 snap-research#65
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