Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting Http error 404 in Pytube. What is reason for this? [closed]

Error message/code

This code used to work 4 days back now it is showing error. I tried using pytube3 but that does not help.

from pytube import YouTube** 
YouTube('https://www.youtube.com/watch?v=JbBsqmKclXE').streams**

HTTPError Traceback (most recent call last) in ()
----> 1 YouTube('https://www.youtube.com/watch?v=JbBsqmKclXE').streams

14 frames
/usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)

647 class HTTPDefaultErrorHandler(BaseHandler):
648     def http_error_default(self, req, fp, code, msg, hdrs):

--> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp) 650 651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 404: Not Found

like image 951
shadow5893 Avatar asked May 20 '21 07:05

shadow5893


Video Answer


1 Answers

This issue has been fixed by Ssuwani. You can install Pytube from

pip install git+https://github.com/ssuwani/pytube 
like image 107
shadow5893 Avatar answered Oct 19 '22 14:10

shadow5893