youtube-dl: can't login to youtube WARNING: Unable to look up account info: HTTP Error 400: Bad Request
Checklist
- [ x] I’m reporting a broken site support
- [ ]x I’ve verified that I’m running youtube-dl version 2020.07.28
- [ x] I’ve checked that all provided URLs are alive and playable in a browser
- [ x] I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- [ x] I’ve searched the bugtracker for similar issues including closed ones
Verbose log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'cookies.txt', '--user-agent=Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', '-f', '141', '-u', 'PRIVATE', '-p', 'PRIVATE', '-v', 'https://music.youtube.com/watch?v=Leq8J0E2TQ0']
[debug] Encodings: locale cp1254, fs mbcs, out cp857, pref cp1254
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg git-2020-07-16-d11cc74, ffprobe git-2020-07-16-d11cc74
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
[youtube] Leq8J0E2TQ0: Downloading webpage
[youtube] {18} signature length 105, html5 player c718385a
[youtube] {137} signature length 105, html5 player c718385a
[youtube] {248} signature length 105, html5 player c718385a
[youtube] {136} signature length 105, html5 player c718385a
[youtube] {247} signature length 101, html5 player c718385a
[youtube] {135} signature length 105, html5 player c718385a
[youtube] {244} signature length 105, html5 player c718385a
[youtube] {134} signature length 101, html5 player c718385a
[youtube] {243} signature length 105, html5 player c718385a
[youtube] {133} signature length 105, html5 player c718385a
[youtube] {242} signature length 105, html5 player c718385a
[youtube] {160} signature length 101, html5 player c718385a
[youtube] {278} signature length 105, html5 player c718385a
[youtube] {140} signature length 105, html5 player c718385a
[youtube] {249} signature length 105, html5 player c718385a
[youtube] {250} signature length 105, html5 player c718385a
[youtube] {251} signature length 101, html5 player c718385a
ERROR: requested format not available
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 808, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 863, in process_ie_result
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 1636, in process_video_result
youtube_dl.utils.ExtractorError: requested format not available
Description
So, here is the thing. I have an Youtube Music Premium subscription which lets me download music with audio format 141. To do that obviously, I need to login to youtube. So I tried my darn hardest to do so, I’ve tried cookies, I’ve tried user agent, I even tried changing my gmail address but none of them worked! I either get error 404 unable to look up account data or error 400 bad request also if you are going to tag this as duplicate, at least tell me what issue’s duplicate this is!
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 20
- Comments: 43
JDownloader 2 can download these videos, why is this program unable to do so? JDownloader is open-source, why don’t have a look over there?
Edit: Why am I getting downvotes for mentioning how others solved the problem or never had it in the first place? An odd kind of online tribalism?
lmao he was not being impolite at all.
use chrome extension Get Cookies copy the cookie and save as file.txt
then pass arg -cookies pathtothefile.txt
Any new of this issue ??
does really anyone expect youtube-dl to do anything else than quickfixing youtube extractor when it starts breaking for all videos?
@majorgear The
youtube-dlhas not released any new version sincev2021.06.06: #29965. I propose you switch like me (and maybe many others) toyt-dlp(which options’ areyoutube-dlcompatible).This is a problem for me also.
Using a cookies.txt file DOES work – I used the Firefox addin to save my YouTube cookies and supplied that file to youtube-dl. i.e. youtube-dl --cookies “/Users/[home]/Desktop/cookies.txt” “https://www.youtube.com/playlist?list=WL”, worked perfectly.
But, I can’t find a way to do that by supplying credentials directly i.e. youtube-dl --username <username> --password <password> URL, returns “WARNING: Unable to look up account info: HTTP Error 400: Bad Request”.
Anyway, I’m happy as long as the cookies method works while work is being done on the credentials method.
What about my comment was impolite?
Still broken 2021.09.22
That’s works for me
Because Sir, you are not very polite. Thanks to selfisekai i can test my self the same problem with de HTTP dialog. The problem is clearly the post to /_/signin/sl/lookup is not accepted by the domain https://accounts.google.com/ anymore. For sure google change something in the authorization method. I’m not proficiency enough for resolve the issue. I hope the developer see these message and have time to study the subject.
At these time is irrelevant to most of youtube-dl users because these problems only arise when you need to login. Mostly videos can be watch in anonymous way. The other possible solution is to use cookies sessions but i hope these bug can be fixed in the future soon.
Thanks.