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

YouTube Auth Fails #26191

Closed
scorpion7-7 opened this issue Jul 30, 2020 · 5 comments
Closed

YouTube Auth Fails #26191

scorpion7-7 opened this issue Jul 30, 2020 · 5 comments
Labels

Comments

@scorpion7-7
Copy link

@scorpion7-7 scorpion7-7 commented Jul 30, 2020

Output:

Type account password and press [Return]:
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 404: Not Found

Tried both "username" and email address - both fail.

@dnascimb
Copy link

@dnascimb dnascimb commented Jul 30, 2020

I've never gotten the authentication to work correctly, either. It would be helpful to have more explicit instructions on how to ensure success.

Here is my latest attempt, which was unsuccessful.

MacBook-Pro:Downloads dan$ youtube-dl --config-location ~/yt/video_capture.config https://www.youtube.com/playlist?list=FL5jE-j35jnm5f8UU7FI8bgg --verbose

[debug] System config: []
[debug] User config: []
[debug] Custom config: [u'--netrc', u'-f', u'bestvideo+bestaudio', u'--write-description', u'--write-info-json', u'--write-annotations', u'--write-all-thumbnails', u'--write-sub', u'--write-auto-sub', u'--all-subs', u'-o', u'%(uploader)s - %(playlist)s/%(playlist_index)s - %(uploader)s - %(title)s - %(upload_date)s.%(ext)s']
[debug] Command-line args: [u'--config-location', u'/Users/dan/yt/video_capture.config', u'https://www.youtube.com/playlist?list=FL5jE-j35jnm5f8UU7FI8bgg', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.12.25
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: avconv 12.3, avprobe 12.3, ffmpeg 4.2.1, ffprobe 4.2.1, phantomjs ., rtmpdump 2.4
[debug] Proxy map: {}
[youtube:playlist] Downloading login page
[youtube:playlist] Looking up account info
WARNING: Unable to look up account info: HTTP Error 404: Not Found
[youtube:playlist] FL5jE-j35jnm5f8UU7FI8bgg: Downloading webpage
ERROR: This playlist is private, use --username or --netrc to access it.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2814, in _real_extract
    has_videos, playlist = self._extract_playlist(playlist_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2737, in _extract_playlist
    raise ExtractorError(message, expected=True)
ExtractorError: This playlist is private, use --username or --netrc to access it.

(adjusted for security purposes) Contents of .netrc file in my $HOME dir:

machine youtube login dandandandan@gmail.com password tECRlvEueKnsPdRNKxXrtxEZpYRjtyie(xxxPoXaCTFt3XAX7MhNsX@

Variations of the contents of .netrc file have included:

  • putting username without the '@gmail.com' at the end
  • enclosing both the username and password values within single quotes
  • enclosing both the username and password values within double quotes
  • enabling and disabling two factor authentication on my account
  • passing authentication arguments as command line arguments separate from the config file

Any assistance is greatly appreciated.

@dstftw dstftw closed this Jul 30, 2020
@dstftw dstftw added the duplicate label Jul 30, 2020
@dnascimb
Copy link

@dnascimb dnascimb commented Jul 30, 2020

@dstftw What issue number does this duplicate?

@scorpion7-7
Copy link
Author

@scorpion7-7 scorpion7-7 commented Jul 30, 2020

Just FYI - the version is the 2020.07.28. Looking through previously closed (and open) - did not find another instance pertaining to this issue where the auth fails and the site is youtube. Manually specifying parameters via CLI and it fails. Am also curious of the duplicate so that it can be followed.

@spiralofhope
Copy link

@spiralofhope spiralofhope commented Aug 1, 2020

@dstftw I also can't find an open issue on this topic.

I saw this on an age restricted video and I also couldn't get the login working via a parameter or netrc functionality.

youtube-dl -u username@example.com jn007jVct0o --verbose

(email address altered)

Click to expand
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'jn007jVct0o', u'--verbose']
Type account password and press [Return]: 
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-9-amd64-x86_64-with-debian-10.0
[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 404: Not Found
[youtube] jn007jVct0o: Downloading webpage
ERROR: jn007jVct0o: YouTube said: Unable to extract video data
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1893, in _real_extract
    'YouTube said: %s' % unavailable_message, expected=True, video_id=video_id)
ExtractorError: jn007jVct0o: YouTube said: Unable to extract video data
@a-raccoon
Copy link

@a-raccoon a-raccoon commented Aug 4, 2020

Need an issue number / solution number to this duplicate issue. Can open up a new issue to collect this information if that's required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.