How to download youtube videos using python?
Code:
Copy the below code and change the download location and run the script, you will get the video.
Command: pip install pytube
from pytube import YouTube print('Downloading Started') ytube = YouTube('https://www.youtube.com/watch?v=FHH6hIc2GyE') print('Title = ', ytube.title) ytube.streams.first().download('C:\\Users\\sairam\\Desktop\\mp') print('Downloaded Successfully...')