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

[safaribooksonline] - Unable to download JSON metadata: HTTP Error 403 #10094

Closed
ghost opened this issue Jul 16, 2016 · 1 comment
Closed

[safaribooksonline] - Unable to download JSON metadata: HTTP Error 403 #10094

ghost opened this issue Jul 16, 2016 · 1 comment
Labels

Comments

@ghost
Copy link

@ghost ghost commented Jul 16, 2016

Youtube-dl is updated but I can not download from safaribooksonline

youtube-dl --version
2016.07.16

Error

./youtube-dl --username myusername --password mypassword https://www.safaribooksonline.com/library/view/something/numbers2222/
[safari:course] Downloading login form
[safari:course] Logging in as myusername
[safari:course] Login successful
[safari:course] numbers2222: Downloading course JSON
ERROR: Unable to download JSON metadata: HTTP Error 403: FORBIDDEN (caused by <HTTPError 403: 'FORBIDDEN'>); 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.

--verbose

File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 390, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1950, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)


P.S.

myusername, mypassword and course's URL is changes

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 16, 2016

Carefully read new issue template and provide all requested information.

@dstftw dstftw closed this Jul 16, 2016
@dstftw dstftw added the incomplete label Feb 8, 2017
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
1 participant
You can’t perform that action at this time.