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

ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()) #23458

Closed
xiaose opened this issue Dec 19, 2019 · 6 comments
Closed

Comments

@xiaose
Copy link

@xiaose xiaose commented Dec 19, 2019

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2019.11.28
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl.exe https://cdn.vidyard.com/hls-videos/uOnFGlfrMECrVyZW-IC3vQ/stream_master_n9HYXx8RhD56f2z7vMEdQQ.m3u8?bkzlhYmEJ9O_HhZrvISndjxgx4ZmhNQOMiv8iFzv5oVE0h7mwHFI7l8v6z6vnal7d7YKB0isXG2grsxLMi_1O8dWbktYQyYdKBbQJQkwKVGWr6NbZQhQGMrT6vJdFV6ZkxB4vo3gljaQhuyACEAnwxhHUeKhbQp2bRorJGJZcdq3CCcJzO6yPdpKVz_HoKtc7JXc -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://cdn.vidyard.com/hls-videos/uOnFGlfrMECrVyZW-IC3vQ/stream_master_n9HYXx8RhD56f2z7vMEdQQ.m3u8?bkzlhYmEJ9O_HhZrvISndjxgx4ZmhNQOMiv8iFzv5oVE0h7mwHFI7l8v6z6vnal7d7YKB0isXG2grsxLMi_1O8dWbktYQyYdKBbQJQkwKVGWr6NbZQhQGMrT6vJdFV6ZkxB4vo3gljaQhuyACEAnwxhHUeKhbQp2bRorJGJZcdq3CCcJzO6yPdpKVz_HoKtc7JXc', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.11.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.2
[debug] Proxy map: {}
[generic] stream_master_n9HYXx8RhD56f2z7vMEdQQ: Requesting header
WARNING: Could not send HEAD request to https://cdn.vidyard.com/hls-videos/uOnFGlfrMECrVyZW-IC3vQ/stream_master_n9HYXx8RhD56f2z7vMEdQQ.m3u8?bkzlhYmEJ9O_HhZrvISndjxgx4ZmhNQOMiv8iFzv5oVE0h7mwHFI7l8v6z6vnal7d7YKB0isXG2grsxLMi_1O8dWbktYQyYdKBbQJQkwKVGWr6NbZQhQGMrT6vJdFV6ZkxB4vo3gljaQhuyACEAnwxhHUeKhbQp2bRorJGJZcdq3CCcJzO6yPdpKVz_HoKtc7JXc: HTTP Error 403: Forbidden
[generic] stream_master_n9HYXx8RhD56f2z7vMEdQQ: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (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\tmpwy0zjfmc\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwy0zjfmc\build\youtube_dl\YoutubeDL.py", line 2237, 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

I try to get videos from https://www.jazzguitarlessons.net/blog/all-the-things-you-are
I fund video link as: https://cdn.vidyard.com/hls-videos/uOnFGlfrMECrVyZW-IC3vQ/stream_master_n9HYXx8RhD56f2z7vMEdQQ.m3u8?bkzlhYmEJ9O_HhZrvISndjxgx4ZmhNQOMiv8iFzv5oVE0h7mwHFI7l8v6z6vnal7d7YKB0isXG2grsxLMi_1O8dWbktYQyYdKBbQJQkwKVGWr6NbZQhQGMrT6vJdFV6ZkxB4vo3gljaQhuyACEAnwxhHUeKhbQp2bRorJGJZcdq3CCcJzO6yPdpKVz_HoKtc7JXc and try to download it using youtube-dl.exe and have got HTTP Error 403: Forbidden

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 19, 2019

duplicate of #11338.
for now, you can download by adding the referer header:
youtube-dl --add-header 'Referer: https://play.vidyard.com/ [HLS_URL]

@remitamine remitamine closed this Dec 19, 2019
@xiaose
Copy link
Author

@xiaose xiaose commented Dec 20, 2019

duplicate of #11338.
for now, you can download by adding the referer header:
youtube-dl --add-header 'Referer: https://play.vidyard.com/ [HLS_URL]

Thank you, @remitamine Now it works! )))

@salmanwaheed
Copy link

@salmanwaheed salmanwaheed commented Jan 20, 2020

duplicate of #11338.
for now, you can download by adding the referer header:
youtube-dl --add-header 'Referer: https://play.vidyard.com/ [HLS_URL]

worked for me, Thanks @remitamine

@goniluka
Copy link

@goniluka goniluka commented Apr 5, 2020

Hi can you help me what [HLS_URL] can i put there for this link
youtube-dl --add-header 'Referer: https://play.vidyard.com/ [https://cdn.vidyard.com/hls-videos/Xee6RMgC-QtFNtiEMpmEUg/full_hd_segmented/full_hd_segmented_V0dtqy4pTRMvStN0dbvA7w.m3u8]
can you help me i am a beginner. Thank you

@sabuncu
Copy link

@sabuncu sabuncu commented Apr 12, 2020

@goniluka Please see the first answer in the following page:
https://www.quora.com/Tutorials-How-can-I-download-PluralSight-training-videos
Add to the youtube-dl.conf file:
--add-header 'Referer: https://play.vidyard.com/'
The HLS refers to the URL being downloaded.
You should specify your own URL(s) in the batch-file you construct.
Run youtube-dl from the command line.

@sabuncu
Copy link

@sabuncu sabuncu commented Apr 12, 2020

@remitamine Thank you, worked for me.

@ytdl-org ytdl-org deleted a comment from javaHelper Apr 18, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.