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
131.39k stars 9.96k forks source link

Crunchyroll HTTP 403 error #16272

Closed Besur closed 6 years ago

Besur commented 6 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.04.25. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


youtube-dl --cookies cookies.txt --geo-bypass-country FR -f "best[height=720]" --retries infinite --all-subs --ignore-errors -v "http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599" [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'--cookies', u'/home/nuts/torrents/cookies.txt', u'--geo-bypass-country', u'FR', u'-f', u'best[height=720]', u'--retries', u'infinite', u'--all-subs', u'--ignore-errors', u'-v', u'http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2018.04.25 [debug] Python version 2.7.9 (CPython) - Linux-3.16.0-5-amd64-x86_64-with-debian-8.10 [debug] exe versions: ffmpeg 2.6.9, ffprobe 2.6.9 [debug] Proxy map: {} [debug] Using fake IP 90.114.239.85 (FR) as X-Forwarded-For. [Crunchyroll] 769599: 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 519, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2203, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(args) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(args) File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Hi, i get this with cookies and with -u XXX -p XXX too ...

Thanks in advance

leo82309 commented 6 years ago

I would try again. (CR has been a bit spotty lately) but, I fear your error has to do with GEO Restrictions. youtube-dl --cookies cookies.txt --all-subs "http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599" works just fine using latest.

Besur commented 6 years ago

Thanks but not working

youtube-dl --cookies cookies.txt --all-subs -v "http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599" [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'--cookies', u'cookies.txt', u'--all-subs', u'-v', u'http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2018.04.25 [debug] Python version 2.7.9 (CPython) - Linux-3.16.0-5-amd64-x86_64-with-debian-8.10 [debug] exe versions: ffmpeg 2.6.9, ffprobe 2.6.9 [debug] Proxy map: {} [Crunchyroll] 769599: 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 519, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2203, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(args) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(args) File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

RGFRv2 commented 6 years ago

Same error for me :

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