youtube-dl
youtube-dl copied to clipboard
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
Checklist
- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones
Question
I'm trying to download a private video from Youtube that I have access to. I can't
command: youtube-dl --username [email protected] https://www.youtube.com/watch?v=xxxxxxxxx
I don't have. But I can share the video with you.
Let me know your email to send the invite.
Is the command correct?
I shared with you a private video. Please try to download this video.
Thanks for trying to help me.
I posted the video on youtube and shared it with you. Try posting a private video on Youtube and download it.
Hi, I'm having a similar problem:
D:\Documents\Songs From YouTube>youtube-dl --username notmyactualusername --password n0tmy4ctua7p455w0rd --batch-file "D:\Documents\Songs From YouTube\Song List.txt" -x --audio-format wav -o "D:\Documents\Songs From YouTube\%(title)s - %(artist)s - %(track)s.%(ext)s"
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
[youtube] eBShN8qT4lk: Downloading webpage
I added the --username and --password switches when a batch job failed due to an age restriction error. I have downloaded the songs another way but I'd be curious to know what I'm doing wrong with the authentication.
Running the latest version of youtube_dl from PIP.
Try passing a file containing cookies extracted from a logged-in browser session where you can play the video using --cookies ...
(see FAQ) instead of --username
/--password
.
If this fails, try setting the UA to match the browser from which the cookies were extracted, using --user-agent ...
.
--username
/--password
is always fragile. Sites are prone to change their login page structure frequently and may also adopt login code to which we can't easily respond (eg, requiring a CAPTCHA to be solved). I don't think the YT extractor's login is working at present; it's far from the only case.
a batch job failed due to an age restriction error.
For age-restricted YT videos, you have two additional options (to supplying "YT-account" cookies discussed above):
- Use the
yt-dlp
fork:
yt-dlp -F "eBShN8qT4lk" =>
[youtube] eBShN8qT4lk: Downloading webpage
[youtube] eBShN8qT4lk: Downloading android player API JSON
[youtube] eBShN8qT4lk: Downloading tv embedded player API JSON
[youtube] eBShN8qT4lk: Downloading web embedded client config
[youtube] eBShN8qT4lk: Downloading player abfb84fe
[youtube] eBShN8qT4lk: Downloading web embedded player API JSON
[info] Available formats for eBShN8qT4lk:
ID EXT RESOLUTION FPS CH | FILESIZE TBR PROTO | VCODEC VBR ACODEC ABR ASR MORE INFO
---------------------------------------------------------------------------------------------------------------
sb2 mhtml 48x27 0 | mhtml | images storyboard
sb1 mhtml 80x45 1 | mhtml | images storyboard
sb0 mhtml 160x90 1 | mhtml | images storyboard
249 webm audio only 2 | 1.36MiB 47k https | audio only opus 47k 48k low, webm_dash
250 webm audio only 2 | 1.80MiB 63k https | audio only opus 63k 48k low, webm_dash
140 m4a audio only 2 | 3.71MiB 129k https | audio only mp4a.40.2 129k 44k medium, m4a_dash
251 webm audio only 2 | 3.61MiB 126k https | audio only opus 126k 48k medium, webm_dash
394 mp4 256x144 24 | 1.96MiB 68k https | av01.0.00M.08 68k video only 144p, mp4_dash
160 mp4 256x144 24 | 2.31MiB 81k https | avc1.4d400c 81k video only 144p, mp4_dash
278 webm 256x144 24 | 2.52MiB 88k https | vp9 88k video only 144p, webm_dash
395 mp4 426x240 24 | 3.91MiB 137k https | av01.0.00M.08 137k video only 240p, mp4_dash
133 mp4 426x240 24 | 4.60MiB 160k https | avc1.4d4015 160k video only 240p, mp4_dash
242 webm 426x240 24 | 4.86MiB 170k https | vp9 170k video only 240p, webm_dash
396 mp4 640x360 24 | 7.73MiB 270k https | av01.0.01M.08 270k video only 360p, mp4_dash
134 mp4 640x360 24 | 8.89MiB 310k https | avc1.4d401e 310k video only 360p, mp4_dash
18 mp4 640x360 24 2 | 16.68MiB 582k https | avc1.42001E 582k mp4a.40.2 0k 44k 360p
243 webm 640x360 24 | 8.32MiB 290k https | vp9 290k video only 360p, webm_dash
397 mp4 854x480 24 | 13.42MiB 469k https | av01.0.04M.08 469k video only 480p, mp4_dash
135 mp4 854x480 24 | 12.66MiB 442k https | avc1.4d401e 442k video only 480p, mp4_dash
244 webm 854x480 24 | 12.82MiB 447k https | vp9 447k video only 480p, webm_dash
398 mp4 1280x720 24 | 24.89MiB 869k https | av01.0.05M.08 869k video only 720p, mp4_dash
136 mp4 1280x720 24 | 18.78MiB 656k https | avc1.4d401f 656k video only 720p, mp4_dash
247 webm 1280x720 24 | 22.91MiB 800k https | vp9 800k video only 720p, webm_dash
399 mp4 1920x1080 24 | 45.05MiB 1572k https | av01.0.08M.08 1572k video only 1080p, mp4_dash
137 mp4 1920x1080 24 | 65.79MiB 2296k https | avc1.640028 2296k video only 1080p, mp4_dash
248 webm 1920x1080 24 | 66.26MiB 2313k https | vp9 2313k video only 1080p, webm_dash
- If you won't or can't (due to system limitations) use
yt-dlp
, then PR #31043 aims to mitigate the "problem" inyoutube-dl
; one has to merge it locally (as the PR is still open (?)), then:
youtube-dl -v -F "eBShN8qT4lk" =>
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'eBShN8qT4lk']
[debug] Encodings: locale cp1253, fs mbcs, out cp737, pref cp1253
[debug] youtube-dl version 2022.09.03
[debug] Python version 3.4.4 (CPython) - Windows-Vista-6.0.6003-SP2
[debug] exe versions: ffmpeg 4.4.1, ffprobe 4.4.1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] eBShN8qT4lk: Downloading webpage
[youtube] Confirming age
[youtube] eBShN8qT4lk: Downloading API JSON
[debug] [youtube] Decrypted nsig XHG-EGzQ7SLbgdlxX => R2Q4rMn8tLp4tQ
[debug] [youtube] Decrypted nsig OvTrUvHI11dMLDPIr => D7NvJSHknnNkLw
[info] Available formats for eBShN8qT4lk:
format code extension resolution note
249-0 webm audio only tiny 47k , webm_dash container, opus @47k(48000Hz), 1.36MiB
249-1 webm audio only tiny 47k , webm_dash container, opus @47k(48000Hz), 1.36MiB
250-0 webm audio only tiny 62k , webm_dash container, opus @62k(48000Hz), 1.80MiB
250-1 webm audio only tiny 62k , webm_dash container, opus @62k(48000Hz), 1.80MiB
251-0 webm audio only tiny 125k , webm_dash container, opus @125k(48000Hz), 3.60MiB
251-1 webm audio only tiny 125k , webm_dash container, opus @125k(48000Hz), 3.61MiB
140-0 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2@129k (44100Hz), 3.71MiB
140-1 m4a audio only tiny 129k , m4a_dash container, mp4a.40.2@129k (44100Hz), 3.71MiB
394 mp4 256x144 144p 68k , mp4_dash container, av01.0.00M.08@68k, 24fps, video only, 1.96MiB
160 mp4 256x144 144p 80k , mp4_dash container, avc1.4d400c@80k, 24fps, video only, 2.31MiB
278 webm 256x144 144p 88k , webm_dash container, vp9@88k, 24fps, video only, 2.52MiB
395 mp4 426x240 240p 136k , mp4_dash container, av01.0.00M.08@136k, 24fps, video only, 3.91MiB
133 mp4 426x240 240p 160k , mp4_dash container, avc1.4d4015@160k, 24fps, video only, 4.60MiB
242 webm 426x240 240p 169k , webm_dash container, vp9@169k, 24fps, video only, 4.86MiB
396 mp4 640x360 360p 269k , mp4_dash container, av01.0.01M.08@269k, 24fps, video only, 7.73MiB
243 webm 640x360 360p 290k , webm_dash container, vp9@290k, 24fps, video only, 8.32MiB
134 mp4 640x360 360p 310k , mp4_dash container, avc1.4d401e@310k, 24fps, video only, 8.89MiB
135 mp4 854x480 480p 442k , mp4_dash container, avc1.4d401e@442k, 24fps, video only, 12.66MiB
244 webm 854x480 480p 447k , webm_dash container, vp9@447k, 24fps, video only, 12.82MiB
397 mp4 854x480 480p 468k , mp4_dash container, av01.0.04M.08@468k, 24fps, video only, 13.42MiB
136 mp4 1280x720 720p 655k , mp4_dash container, avc1.4d401f@655k, 24fps, video only, 18.78MiB
247 webm 1280x720 720p 799k , webm_dash container, vp9@799k, 24fps, video only, 22.91MiB
398 mp4 1280x720 720p 868k , mp4_dash container, av01.0.05M.08@868k, 24fps, video only, 24.89MiB
399 mp4 1920x1080 1080p 1572k , mp4_dash container, av01.0.08M.08@1572k, 24fps, video only, 45.05MiB
137 mp4 1920x1080 1080p 2296k , mp4_dash container, avc1.640028@2296k, 24fps, video only, 65.79MiB
248 webm 1920x1080 1080p 2312k , webm_dash container, vp9@2312k, 24fps, video only, 66.26MiB
18 mp4 640x360 360p 582k , avc1.42001E, 24fps, mp4a.40.2 (44100Hz), 16.68MiB (best)