Skip to content

Commit c83d43c

Browse files
ItsAakiftechyminati
authored andcommitted
Add simple Youtube video downloader
1 parent 8649f55 commit c83d43c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎Ytdownloader.py‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from pytube import YouTube
2+
3+
url = "https://youtu.be/dQw4w9WgXcQ" #Enter the url of the video you want to download
4+
5+
video = YouTube(url)
6+
7+
print(video.title) #prints the title of the youtube video
8+
9+
print(video.thumbnail_url) #prints the link of the youtube thumbnail image
10+
11+
print(video.views) #prints the views of the video
12+
13+
print(video.description) #prints the description of the video
14+
15+
video = video.streams.get_highest_resolution()
16+
17+
video.download() #downloads the video in your current directory

0 commit comments

Comments
 (0)