kurianbenoy commited on
Commit
1c78cff
1 Parent(s): 3d872eb

add download script

Browse files
Files changed (1) hide show
  1. download_videos.py +12 -0
download_videos.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pytube import YouTube
2
+
3
+ # Replace '<video_url>' with the URL of the YouTube video you want to download
4
+ video_url = 'https://www.youtube.com/watch?v=B5s3E9LtYwM'
5
+ yt = YouTube(video_url)
6
+
7
+ # Select the highest resolution stream for download
8
+ stream = yt.streams.get_highest_resolution()
9
+
10
+ # Download the video
11
+ stream.download()
12
+