Skip to content

Commit

Permalink
You tube video downloader
Browse files Browse the repository at this point in the history
Youtube is a great video platform. The only problem arises when we want to download these videos for the future. Here is a cool python library pytube that supports downloading videos.
  • Loading branch information
SmallLion authored Jul 24, 2021
1 parent 0eb5749 commit 97ae802
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions you_tube_video_downloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#import the library
from pytube import YouTube
#ask user to type in the link
link = input("Enter the link of youtube video: ")
#creating an object
yt = YouTube(link)
#to get the highest resolution
ys = yt.streams.get_highest_resolution()
#show the message until downloading
print("Downloading...")
#specifying the location for this video
ys.download("Downloads\python")
#show the message when download is completed
print("Download completed!!")

# Coded with 💙 by Mr. Unity Buddy

0 comments on commit 97ae802

Please sign in to comment.