404 on adaptive downloads
See original GitHub issueI’m getting a 404 from youtube when I attempt to download adaptive streams. Progressive is fine, but those aren’t the highest quality videos. Is there a work around for this one?
from pytube import YouTube
yt_video = YouTube("https://www.youtube.com/watch?v=xFSVoVOvaew")
yt_video.streams.filter(adaptive=True).order_by('resolution').first().download()
Returns
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/kaiser/tmp/pytube/pytube/streams.py", line 245, in download
bytes_remaining = self.filesize
File "/Users/kaiser/tmp/pytube/pytube/streams.py", line 156, in filesize
self._filesize = request.filesize(self.url)
File "/Users/kaiser/tmp/pytube/pytube/request.py", line 86, in filesize
return int(head(url)["content-length"])
File "/Users/kaiser/tmp/pytube/pytube/request.py", line 98, in head
response_headers = _execute_request(url, method="HEAD").info()
File "/Users/kaiser/tmp/pytube/pytube/request.py", line 27, in _execute_request
return urlopen(request) # nosec
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Users/kaiser/.pyenv/versions/3.8.2/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Issue Analytics
- State:
- Created 3 years ago
- Comments:37
Top Results From Across the Web
404 on adaptive downloads · Issue #717 · pytube ... - GitHub
I'm getting a 404 from youtube when I attempt to download adaptive streams. Progressive is fine, but those aren't the highest quality videos ......
Read more >404 erros with Shortpixel - WordPress.org
The topic '404 erros with Shortpixel' is closed to new replies. ShortPixel Adaptive Images · Frequently Asked Questions · Support Threads · Active...
Read more >Solved: HTTP 404 error on ASDM access - Cisco Community
HTTP 404 error on ASDM access ... Cisco Adaptive Security Device Manager for ASA 8.0, 8.1, 8.2, 8.3, and 8.4. Here is what...
Read more >query data from Adaptive Planning (ERP) - got error 404
Query data using the Web API - query data from Adaptive Planning (ERP) - got ... However it is kind of strange since...
Read more >Why do I get a "404 Error" when downloading CS3 Ma...
When attempting to download the files for a re-installation of CS3 Master Collection (English) from the CS3 Products Download page, clicking a link...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still an issue, it should not be marked as stale.
nevermind it was 10.8.4 not 5 sorry about that