Make your own any youtube video downloader using python.

               Welcome to youtube video downloader 


This is your own any youtube video downloader using python. You import pytube.


Make sure your internet speed is good then work only.


from pytube import YouTube

link = input("Enter the YouTube video link: ")
youtube = YouTube(link)
videos = youtube.streams.filter(file_extension='mp4').all()

for i, video in enumerate(videos):
print(f"{i}: mime_type='video/mp4', res='{video.resolution}'")

print()
strm = int(input("Enter the index of the video you want to download: "))
file_save_path = input("Enter the file save path: ")
videos[strm].download(file_save_path)
print("Successfully downloaded.")

Comments

Popular posts from this blog

Binary to Number converter.

Python Tkinter QR Code Generator

color guessing game with GUI using python