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 403: Forbidden #23418

Closed
achirkof opened this issue Dec 15, 2019 · 3 comments
Closed

HTTP Error 403: Forbidden #23418

achirkof opened this issue Dec 15, 2019 · 3 comments
Labels

Comments

@achirkof
Copy link

@achirkof achirkof commented Dec 15, 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 provided URLs are alive and playable in a browser
  • 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 https://academy.essentialdeveloper.com/courses/447455/lectures/13004189 --username <my_login> --password <my_password> --verbose
[debug] System config: []
[debug] User config: ['--output', '~/Downloads/%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['https://academy.essentialdeveloper.com/courses/447455/lectures/13004189', '--username', 'PRIVATE', '--password', 'PRIVATE', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.11.28
[debug] Python version 3.7.5 (CPython) - Darwin-19.2.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[generic] 13004189: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 13004189: Downloading webpage
[generic] 13004189: Extracting information
[Teachable] Downloading academy.essentialdeveloper.com login page
ERROR: Unable to download webpage: 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.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 563, in error
    result = self._call_chain(*args)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

This works before, maybe month ago, but now it brokes. I'm not sure it's youtube-dl problem, maybe site owners made a change to disable possibility to download videos. Could you please check?
I can provide my credentials in private if you need.

Looks like it's linked to Python like this #23257

Thanks!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 15, 2019

Standard cloudflare captcha. Solve in browser and pass cookies to youtube-dl.

@dstftw dstftw closed this Dec 15, 2019
@dstftw dstftw added the invalid label Dec 15, 2019
@achirkof
Copy link
Author

@achirkof achirkof commented Dec 15, 2019

Standard cloudflare captcha. Solve in browser and pass cookies to youtube-dl.

You are right. Using cookies from Chrome fix my problem. Thanks!

@tallero
Copy link

@tallero tallero commented Apr 20, 2020

Problems with https://www.youtube.com/watch?v=iXDIeYpr2aM
Fails even using a cookies.txt.

EDIT: After some hours it worked.

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