I am trying to build an app to download YouTube videos in python using pytube3.
But I am unable to retrieve the title of the video.
Here goes my code:
from pytube import YouTube
yt = YouTube(link)
print(yt.title)
No matter whatever is the link I always get the title returned as YouTube
instead of title of the video.
Is there anyway to fix it?