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.

404 on adaptive downloads

See original GitHub issue

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. 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:closed
  • Created 3 years ago
  • Comments:37

github_iconTop GitHub Comments

5reactions
kpistercommented, Oct 12, 2020

This is still an issue, it should not be marked as stale.

2reactions
ellisju37073commented, Jun 21, 2021

nevermind it was 10.8.4 not 5 sorry about that

Read more comments on GitHub >

github_iconTop 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 >

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