5

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

DaImTo
  • 72,534
  • 21
  • 122
  • 346
shadow5893
  • 131
  • 2
  • 8
  • Is what you try to get available online? Can you see selected video in web browser? – Daweo May 20 '21 at 07:51
  • yes. I am able to view in browser. you can check that too. – shadow5893 May 20 '21 at 08:21
  • Is this even a valid YouTube API endpoint? Possibly related to https://stackoverflow.com/q/67615278/1841839 – DaImTo May 20 '21 at 08:56
  • Does this answer your question? [Pytube givng an “HTTP Error 404: Not Found” error. Anyone knows how to fix this?](https://stackoverflow.com/q/67614883/6045800) – Tomerikoo May 27 '21 at 13:11

1 Answers1

6

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

pip install git+https://github.com/ssuwani/pytube 
Mustafa Aydın
  • 6,383
  • 3
  • 8
  • 25
shadow5893
  • 131
  • 2
  • 8