Hello, everybody!
I have this error in Jupyter Notebook:
from pytube import YouTube
yt = YouTube("https://www.youtube.com/watch?v=n06H7OcPd-g")
Output:
PytubeError Traceback (most recent call last)
<ipython-input-10-6607b2ea2007> in <module>()
1 from pytube import YouTube
----> 2 yt = YouTube(“https://www.youtube.com/watch?v=n06H7OcPd-g”)
C:\Users\immelnikoff\anaconda3\envs\for_youtube\lib\site-packages\pytube-6.1.8-py3.5.egg\pytube\api.py in init(self, url) 64 self._videos = [] 65 if url: —> 66 self.from_url(url) 67 68 @property
C:\Users\immelnikoff\anaconda3\envs\for_youtube\lib\site-packages\pytube-6.1.8-py3.5.egg\pytube\api.py in from_url(self, url) 156 157 # Get the video details. –> 158 video_data = self.get_video_data() 159 160 # Set the title from the title.
C:\Users\immelnikoff\anaconda3\envs\for_youtube\lib\site-packages\pytube-6.1.8-py3.5.egg\pytube\api.py in get_video_data(self) 267 268 # Extract out the json data from the html response body. –> 269 json_object = self._get_json_data(html) 270 271 # Here we decode the stream map and bundle it into the json object. We
C:\Users\immelnikoff\anaconda3\envs\for_youtube\lib\site-packages\pytube-6.1.8-py3.5.egg\pytube\api.py in _get_json_data(self, html) 315 # In case video is unable to play 316 if(pattern_idx == -1): –> 317 raise PytubeError(“Unable to find start pattern.”) 318 start = pattern_idx + 18 319 html = html[start:]
PytubeError: Unable to find start pattern.
System information
sys.version
‘3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)]’
pytube.__version__
‘6.1.8’
I installed pytube in Anaconda Navigator from channel https://anaconda.org/everwho
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
Hi, @tfdahlin! Thank you for answer, I installed last version of pytube and this error disappeared. But I have one more question. Can I dowload not only playlist, but whole youtube-channel?
Closing this since the original issue was resolved.