Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fox.com HTTP Error 403: Forbidden #20208
Comments
|
most likely an invalid cookies file, a valid
|
|
first check that the cookie line for |
|
The cookie has the following I don't see and HTTPOnly anywhere in the file.
The thing I don't get is out of 10 different videos some work and other don't. Here is the list I'm trying: Failed youtube-dl --cookies ms.txt https://www.fox.com/watch/54074345bfce9b3069c4523fb673a41a/ |
the working videos are free don't require an account. |
|
i have pushed some code to detect some of the errors, you can report back when you test the new version. |
|
Can you walk me through testing this new code? Do i have do a git pull or should i just back up a file and do a copy and paste of the new code you added. (sorry I'm new to github) |
|
|
you can check again with the latest version and post the error you're getting. |
|
youtube-dl --cookies ms.txt https://www.fox.com/watch/54074345bfce9b3069c4523fb673a41a/ -v During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
invalid cookie file, the |
|
hmm i've tried clearing my cache multiple times... i've logged in to my provider several times. Only other thing is I'll have to find out where the cookies are stored and delete them manually. |
Ok I found where google chrome is storing cookies... made sure to remove all cookies manually. Restarted browser and then logged in again. Same cookie message. See this is the issue. Tried this video with the same cookie file: https://www.fox.com/watch/cff4661b61fbe9c225e71373d58a6f8c/ Works fine. Any idea why one video works with a cookie but the other doesn't? Both videos in question work fine in the browser. |
|
as I said before #20208 (comment), free videos do not require using a cookie file at all. something wrong with the cookies that you're exporting, the way I export the cookies is using |
I just tried it with out cookies and it seems to be working. I guess I assumed they all required cookies to watch. Thanks for the help. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.03.01. 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
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 the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Trying to download The Masked Singer. I tried with cookies and it still fails.
youtube-dl --cookies=ms.txt https://www.fox.com/watch/54074345bfce9b3069c4523fb673a41a/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies=ms.txt', 'https://www.fox.com/watch/54074345bfce9b3069c4523fb673a41a/', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.01
[debug] Python version 3.6.1 (CPython) - Linux-3.10.0-862.3.2.el7.x86_64-x86_64-with-centos-7.5.1804-Core
[debug] exe versions: ffmpeg 3.4.5, ffprobe 3.4.5
[debug] Proxy map: {}
[FOX] Downloading JSON metadata
[FOX] 54074345bfce9b3069c4523fb673a41a: Downloading JSON metadata
ERROR: Unable to download JSON metadata: 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 "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 605, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2225, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
youtube-dl --version
2019.03.01