Panda-70M icon indicating copy to clipboard operation
Panda-70M copied to clipboard

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

Open YifanXu74 opened this issue 1 year ago • 18 comments

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!

YifanXu74 avatar Jul 10 '24 13:07 YifanXu74

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

sun-yanjun avatar Jul 31 '24 06:07 sun-yanjun

Same error, is there any better solutions?

Chuge0335 avatar Aug 05 '24 06:08 Chuge0335

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

DmytroUsenko avatar Aug 11 '24 11:08 DmytroUsenko

Same error, subscribed

Abdurrafey-Siddiqui avatar Aug 11 '24 21:08 Abdurrafey-Siddiqui

same

taiyouZhang avatar Aug 12 '24 02:08 taiyouZhang

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

GizuMoca avatar Aug 14 '24 02:08 GizuMoca

Same error

Chuge0335 avatar Aug 15 '24 03:08 Chuge0335

Same error

weihxx avatar Aug 15 '24 05:08 weihxx

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.

Hzzone avatar Aug 23 '24 02:08 Hzzone

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?

DmytroUsenko avatar Aug 23 '24 08:08 DmytroUsenko

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.

Hzzone avatar Aug 23 '24 12:08 Hzzone

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 avatar Aug 25 '24 08:08 DmytroUsenko

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

DmytroUsenko avatar Aug 25 '24 10:08 DmytroUsenko

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

fangqi-Zhu avatar Aug 26 '24 11:08 fangqi-Zhu

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

Can you explain in detail how it was done

pikeyang avatar Aug 28 '24 02:08 pikeyang

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

deconasser avatar Sep 09 '24 10:09 deconasser

The videos can be downloaded with pytubefix.

LuigiNixy avatar Sep 22 '24 12:09 LuigiNixy

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

jingwangsg avatar Nov 04 '24 11:11 jingwangsg