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

Unable to download webpage: HTTP Error 403: Forbidden - learning.oreilly.com #21189

Closed
zioalex opened this issue May 22, 2019 · 2 comments
Closed

Comments

@zioalex
Copy link

@zioalex zioalex commented May 22, 2019

Checklist

  • [ X ] I'm reporting a broken site support
  • [ X ] I've verified that I'm running youtube-dl version 2019.05.20
  • [ 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

/home/alex/.local/bin/youtube-dl -v -n --sleep-interval 60 --write-sub --convert-subs srt --playlist-reverse --skip-unavailable-fragments -ic --socket-timeout 5 --retries infinite --write-description --write-info-json --write-annotations -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://learning.oreilly.com/library/view/go-in-24/9780134771922/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-n', '--sleep-interval', '60', '--write-sub', '--convert-subs', 'srt', '--playlist-reverse', '--skip-unavailable-fragments', '-ic', '--socket-timeout', '5', '--retries', 'infinite', '--write-description', '--write-info-json', '--write-annotations', '-o', '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s', 'https://learning.oreilly.com/library/view/go-in-24/9780134771922/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.05.20
[debug] Python version 3.4.2 (CPython) - Linux-4.4.38-v7+-armv7l-with-debian-8.0
[debug] exe versions: avconv 11.12-6, avprobe 11.12-6
[debug] Proxy map: {}
[safari:course] Downloading login page
[safari:course] Logging in
[safari:course] Completing login
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; 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 "/home/alex/.local/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 626, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/alex/.local/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 461, in open
    response = meth(req, response)
  File "/usr/lib/python3.4/urllib/request.py", line 571, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.4/urllib/request.py", line 499, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

Just tried to download this O'reilly courses and I get always the same error.
The download work without any problem with this url: https://learning.oreilly.com/videos/clean-code/9780134661742

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 22, 2019

For any work on this you must provide reproducible environment.

@dstftw dstftw closed this May 22, 2019
@zioalex
Copy link
Author

@zioalex zioalex commented May 22, 2019

What is missed here? You have the URL and the full command line.

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.