question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crunchyroll: `<HTTPError 403: 'Forbidden'>`

See original GitHub issue

Checklist

Region

Canada

Description

Trying to download this video from Crunchyroll gives an error - details can be found in the verbose log

Verbose log

$ yt-dlp https://www.crunchyroll.com/sword-art-online/episode-1-the-world-of-swords-606739 --verbose
[debug] Command-line config: ['https://www.crunchyroll.com/sword-art-online/episode-1-the-world-of-swords-606739', '--verbose']
[debug] User config "/Users/wilsonchan/.config/yt-dlp/config": ['--add-metadata']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef]
[debug] Python version 3.7.4 (CPython 64bit) - Darwin-21.2.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [crunchyroll] Extracting URL: https://www.crunchyroll.com/sword-art-online/episode-1-the-world-of-swords-606739
[crunchyroll] 606739: Downloading webpage
ERROR: [crunchyroll] 606739: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using -U (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using -U
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/site-packages/yt_dlp/extractor/common.py", line 730, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/site-packages/yt_dlp/YoutubeDL.py", line 3558, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 563, in error
    result = self._call_chain(*args)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 755, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/Users/wilsonchan/opt/anaconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:24

github_iconTop GitHub Comments

1reaction
CZeilcommented, Mar 6, 2022

Share me verbose to this command yt-dlp -F https://www.crunchyroll.com/sword-art-online/episode-1-the-world-of-swords-606739 -v

0reactions
Wilanncommented, Mar 7, 2022

It all worked out! Thanks so much @CZeil

If anyone comes across this in the future, I edited the config file like so:

-i URL1
URL2
...

-f '(bv[height<=1080]+ba/b[height<=1080])[format_note*=Uncut]/
(bv[height<=1080]+ba/b[height<=1080])[format_note*=Simulcast]'

--sub-lang en_Uncut,en --embed-subs --sub-format vtt

-o '%(series)s S%(season_number)sE%(episode_number)s - %(episode)s.%(ext)s'

--download-archive 'archive.txt'

--extractor-args funimation:language=japanese

-N 5

--add-metadata --no-check-certificates -w --remux-video mp4
Read more comments on GitHub >

github_iconTop Results From Across the Web

``(403) forbidden : r/Crunchyroll - Reddit
Cant go on to Crunchyroll with my proxy, it keeps saying ``forbidden´´. This thread is archived. New comments cannot be posted and votes...
Read more >
Error 403 when you access Windows Update - Microsoft Learn
Symptoms. When you try to access the Windows Update website, you receive the following error message: Error 403: Access Denied/Forbidden ...
Read more >
youtube-dl - Bytefreaks.net
HTTPError : HTTP Error 403: Forbidden During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/tux/ ...
Read more >
Youtube-dl library and ERROR 403: Forbidden when using ...
This happens only with only some exact videos, but there are a lot of them. Some of videos that returns 403: https://www.youtube.com/watch?v= ...
Read more >
What is 403 Forbidden Error and How to Fix It - TechOwns
403 Forbidden Error always indicates that the client or the user has been restricted the access of using that particular site or resource....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found