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

HTTP Error 401: Unauthorized - When accessing NBC.com using DirectTV Login info #26078

Open
ds1018 opened this issue Jul 21, 2020 · 4 comments
Open

Comments

@ds1018
Copy link

@ds1018 ds1018 commented Jul 21, 2020

Checklist

  • [x ] I'm reporting a broken site support
  • [x ] I've verified that I'm running youtube-dl version 2020.06.16.1
  • [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: ['--ap-username', 'PRIVATE', '--ap-mso', 'DTV', '--ap-password', 'PRIVATE', '--verbose', 'https://www.nbc.com/botched/video/seeing-double/3049418']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg git-2020-03-06-cfd9a65
[debug] Proxy map: {}
[NBC] 3049418: Downloading JSON metadata
[NBC] 3049418: Downloading Provider Redirect Page
[NBC] 3049418: Downloading Provider Login Page
[NBC] 3049418: Logging in
[NBC] 3049418: Confirming Login
[NBC] 3049418: Retrieving Session
ERROR: Unable to download webpage: HTTP Error 401: Unauthorized (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpspbsbtmq\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpspbsbtmq\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

Description

Trying to pull videos from NBC website I get the above error. I log in to the site in my browser using my DirectTV login info, verify the video can play, and copy the link to use with youtube-dl. I've been able to use the cookies.txt chrome extension to pull from HGTV after logging in with my DTV info, but it doesn't work with NBC. Let me know if you want to see that output.

@sufr3ak
Copy link

@sufr3ak sufr3ak commented Jul 24, 2020

I believe that there is a URL change or something with the MSO. If you're off the ISP IP space, you get the 401 unauthorized. If you're on their network, ERROR: Unable to extract post url

@ds1018
Copy link
Author

@ds1018 ds1018 commented Aug 1, 2020

I signed up for an NBC universal account so it wouldn't deal with the DirectTV login info and I'm getting the same errors.

Anyone have any experience with using YouTube-dl to pull from the NBC website?

@sufr3ak
Copy link

@sufr3ak sufr3ak commented Aug 2, 2020

I believe it is the same issue as here: #26139

@sufr3ak
Copy link

@sufr3ak sufr3ak commented Sep 6, 2020

This issue persists with 2020.09.06

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
2 participants
You can’t perform that action at this time.