youtube-dl: Crunchyroll Login page throwing 503
Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
xinto all the boxes [ ] relevant to your issue (like that [x]) - Use Preview tab to see how your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.12.22. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.
- [x ] I’ve verified and I assure that I’m running youtube-dl 2016.12.22
Before submitting an issue make sure you have:
- At least skimmed through README and most notably FAQ and BUGS sections
- Searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
- Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- Question
- Other
The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
Youtube-DL>youtube-dl -i "http://www.crunchyroll.com/fairy-musketeers/episode-1-akazukin-finally-comes-510412" -u MyUserName -p MyPassword --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-i', 'http://www.crunchyroll.com/fairy-musketeers/episode-1-akazukin-finally-comes-510412', '-u', 'PRIVATE', '-p', 'PRIVATE', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.12.31
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-62728-g6956b04, rtmpdump 2.5
[debug] Proxy map: {}
[Crunchyroll] Downloading login page
ERROR: Unable to download webpage: HTTP Error 503: Service Temporarily Unavailable (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest versi
on; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa0c7afb5\build\youtube_dl\extractor\common.py", line 406, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpa0c7afb5\build\youtube_dl\YoutubeDL.py", line 2001, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
...
Description of your issue, suggested solution and other information
If you provide login credentials for Crunchyroll, then the script shows a HTTP Error 503: Service Temporarily Unavailable (caused by HTTPError()) error. But, if you remove the login credentials, it’ll download the video/playlist just fine. Above, I have provided a log with the login credentials. I can open the login page just fine on all the browsers and I’m not behind any firewall. I have tried this with 2 different systems, in different location and I had the same result.
I checked the login page and it was just cloudflare browser check. There was no captcha to solve or anything, as mentioned in this issue.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 110 (3 by maintainers)
Commits related to this issue
- Revert "use older login method(closes #11572)" This reverts commit cc6a960e134614f8af2a42dcd8bf146d63638a3c. — committed to meunierd/youtube-dl by remitamine 5 years ago
- Revert "use older login method(closes #11572)" This reverts commit cc6a960e134614f8af2a42dcd8bf146d63638a3c. — committed to meunierd/youtube-dl by remitamine 5 years ago
Find your useragent : http://www.esolutions.se/whatsmyinfo Grab/Export browser cookies via any plugin like ‘export cookies’ (mozilla)
Pass that file with the argument
--cookies fileName.txtand then your user agent as--user-agent userAgent.@Crank666 If you still haven’t got it working, remove the username/password parameters and it should work (it will auth with the cookie file)
@federicorosso1993 ffmpeg is already installed on the Mac, I tried with a premium video that I couldn’t download on macOS with my premium account. Now, I tried with the same command and the same premium video (and the same premium account) on a Windows 7 VM, I am able to download 1080p, or choose 720p, and all. And you are right about the first video of an anime, it’s in 1080p for free, and I was able to download it too.
-Edit- Wait, I found why I was unable to download in HD and plus on macOS… I exported my cookies again, and I completely forgot that I have unlogged myself from crunchyroll in Firefox since my last try. So, I re-logged in, exported my cookies, and did python3 $(which youtube-dl) --cookies cookies.txt --user-agent “my user agent” --no-check-certificate [–other options] [link] And now, everything is working fine. Thanks!
Ok finally I found a fix for OSX.
--cookies cookies.txt --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:51.0) Gecko/20100101 Firefox/51.0"(this is just an example)--no-check-certificatepython3 $(which youtube-dl)instead ofyoutube-dlyou can now download with your account, not just on windows but also on mac. the main error was because of python 2.7 (and the only way I found to use python3 instead was to apply point 3).
there is still a warning: WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg
So I guess you need to install ffmpeg to make it work. it was already installed in my system.
If you want you can still use youtube-dl without account login to download.
@Xonshiz
It should be back now, if not log out from Crunchyroll on your browser, delete all cookies and log in again, use the new cookies for youtube-dl. Don’t even try without cookies because you will get a 503 HTTP error.
@Crank666 Hi there, make sure you browse to crunchyroll after you install the plugin, after you do that the top entries should be crunchyroll cookies in either the .txt or the plugin.
“youtube-dl http://www.crunchyroll.com/monster-strike/episode-2-the-karmic-fist-of-wrath-734365 -f best --write-sub --sub-lang deDE --sub-format ass --cookies cookies.txt --download-archive archive.txt” works fine for me -> i use “cookies.txt” addon for chrome (Link)…
note that now there is only one request that has the problem of cf anti-bot page, i think that the extraction of the needed
metadatacan be done using other methods(use of Mobile API).@Xonshiz Good luck with your new Script
@Com3Carne Are you using the same IP address for creating your cookie and downloading using yt-dl ? If it’s not the same it’s gonna fail.
I don’t think you can download more than 480p without providing the login data to a Crunchyroll Premium acccount, and you never could. Use the -u and -p options to set your login details, as well as --user-agent to bypass the Cloudflare protection, if necessary.
[debug] Command-line args: ['http://www.crunchyroll.com/blue-exorcist/episode-1-small-beginnings-728285', '-u', 'PRIVATE', '-p', 'PRIVATE', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.51 Safari/537.36', '--cookies', 'cookies.txt', '--write-sub', '--sub-lang', 'enUS', '-v'][Crunchyroll] Downloading login page[Crunchyroll] 728285: Downloading webpage[Crunchyroll] 728285: Downloading media info for 360p[Crunchyroll] 728285: Downloading media info for 480p[Crunchyroll] 728285: Downloading media info for 720p[Crunchyroll] 728285: Downloading media info for 1080p^cERROR: Interrupted by userHi,
You have to check these things :
Also what’s your error ?