ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.05k stars 10.01k forks source link

Safari not work for download videos HTTP Error 404 #29472

Open nisamo opened 3 years ago

nisamo commented 3 years ago

Checklist

Verbose log


PASTE VERBOSE LOG HERE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-u', 'PRIVATE', '-p', 'PRIVATE', '-o', 'C:\\videos\\%(playlist)s/%(playlist_index)2d - %(title)s.%(ext)s', '--write-sub', '--sub-lang', 'en', 'https://www.safaribooksonline.com/videos/micro-frontends-in/9781617296871VE/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.6 (CPython) - Windows-10-10.0.14393-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[safari:course] Downloading login page
[safari:course] Logging in
[safari:course] Completing login
[safari:course] 9781617296871VE: Downloading course JSON
[download] Downloading playlist: Micro Frontends in Action video edition
[safari:course] playlist Micro Frontends in Action video edition: Collected 60 video ids (downloading 60 of them)
[download] Downloading video 1 of 60
[safari:api] Downloading login page
[safari:api] 9781617296871VE/MFiA_part1: Downloading part JSON
[safari] Downloading login page
[safari] 9781617296871VE-MFiA_part1: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\youtube_dl\extractor\common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 555, in error
    result = self._call_chain(*args)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 747, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 523, in open
    response = meth(req, response)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 632, in http_response
    response = self.parent.error(
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 561, in error
    return self._call_chain(*args)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
    result = func(*args)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\urllib\request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

## Description

<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

What problem for download video from https://www.safaribooksonline.com ? stop support this sites?
F460 commented 3 years ago

Is the content behind a paywall?

t-node commented 3 years ago

I am facing the same issue, @proBro34 no content is not behind the paywall.

JamesDAdams commented 3 years ago

same for me for download playlist

2021-07-09T11:20:45.235Z VERBOSE: Watching playlists with delay interval of 60000 2021-07-09T11:20:45.236Z VERBOSE: Watching playlist with delay interval of 60000 2021-07-09T11:20:45.406Z VERBOSE: Subscription: getting videos for subscription playlists 2021-07-09T11:20:46.621Z VERBOSE: Subscription: finished check for playlists 2021-07-09T11:20:46.622Z ERROR: ERROR: Unable to download webpage: HTTP Error 404: Not Found (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.

cdarlint commented 3 years ago

I've fixed this, take a look at above link of Pull Request fix your local version and it will work