And here is the code,
from pytube import YouTube
#print(dir(pytube))
url = 'https://www.youtube.com/watch?v=7BXJIjfJCsA&t=282s'
vdo = YouTube(url)
print(vdo.title)
print(vdo.thumbnail_url)
Though the url is correct, i get the error message.
And here is the code,
from pytube import YouTube
#print(dir(pytube))
url = 'https://www.youtube.com/watch?v=7BXJIjfJCsA&t=282s'
vdo = YouTube(url)
print(vdo.title)
print(vdo.thumbnail_url)
Though the url is correct, i get the error message.
Just upgrade your pytube package, run your code again and it will work. The current version is 10.8.5
Go to your terminal and type in
pip install pytube --upgrade