youtube-dl: [10Play] "403 Forbidden" error

Why does it say “Forbidden” here?

Output of “verbose” option follows:


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://10play.com.au/news/sydney/sydney-news-01-apr-2021/tpv210401nupbd', '-o', 'Ten News Sydney, April 1.mp4', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.04.01
[debug] Python version 3.5.2 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[TenPlay] tpv210401nupbd: Downloading JSON metadata
[TenPlay] 9000000000020661: Downloading webpage
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; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/Users/imac/miniconda3/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Users/imac/miniconda3/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 2279, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Users/imac/miniconda3/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/Users/imac/miniconda3/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/imac/miniconda3/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/Users/imac/miniconda3/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/Users/imac/miniconda3/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)


About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 44

Most upvoted comments

Getting the same error on 10play for a different show. Would really appreciate a fix.

try this one on win7, no guarantees as I don’t have win7 to test on. youtube-dl-10plsy-fix-p3.6.zip

Tested this on python3.7 – it works for me…

Now for the OPs issue with 10Play …

use with -u “username” -p “password” youtube-dl-10play-fix.zip

Hi Ronnnny, could you please upload your Windows version for those of us who use the Windows one until this problem has been resolved. Thanks

Thanks for testing for me. My changes only supported Python2.7. I’ve made the necessary changes for Python3.5. youtube-dl_28728_1.zip

You seem anxious so here’s a build of #28728 for *nix while you wait: youtube-dl_28728.zip

Here’s the final fix for Crunchyroll. First of all, check if you can actually access Crunchyroll with your machine. If you enabled Beta Crunchyroll, disable it from the options of your account

Now, if you need to download a Premium video, follow these steps:

  • Login in your Crunchyroll account using Chrome or Firefox
  • Extract Crunchyroll cookies with any extension (best one is cookies.txt)
  • Edit the cookie file and leave only the session_id, just like this: image

Since you using session_id, you don’t need to pass account username and password in the options (as login its even broken)

Here’s an example script in Python: image

Hope this will help

Sorry … I didn’t know the user/pwd option only worked with sites that yt-dl is coded to work with. I thought the user/pwd option was more generic. Life is about constantly learning new things. 😃 My coding experience is a bit prehistoric (think punch card programming!).

Welcome to programming, @bnw42. youtube-dl prompts you when you use --username, no matter what the URL is. No one’s written the code for actually using your credentials with 10Play before. You’ll have to wait for my pull request to be approved.

Works fine on Win10 … but on Win7 this gives the dreaded “missing api-ms-win-core-path-l1-1-0.dll” error, which is an unresolvable error with win7 since the dll in question only works with Win8+. For Win7 it needs to be compiled with python 3.8.6 or earlier or as a 32-bit executable. 😦

@jmagic YES! This version works!

@Genesisfury In Terminal, drag and drop the file “youtube-dl” you unzipped from the zip, and enter the parameters like you normally use the “youtube-dl” command. It should come out in the Terminal as

/directory/containing/file/youtube-dl --username=....... etc. etc. --password=.......etc. etc. http://web.address.of.video -o "Video file.mp4"

Except --username doesn’t yet work for 10play. Mind you, even logging onto the website & using an out of the box install of chrome, I can’t play videos on the 10play site since they broke yt-dl. But that’s not an issue for here.

There’s some complicated simulation of filling in the actual login form for some of the sites. 10Play’s quite straightforward, though.

I get a similar error on Crunchyroll, rolling back to an older version of youtube-dl should fix it.