Spaces:
Runtime error
Runtime error
Rehman1603
commited on
Commit
•
f4d7b84
1
Parent(s):
c925d0d
Create Download_Video.py
Browse files- Download_Video.py +8 -0
Download_Video.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pytube
|
2 |
+
|
3 |
+
def download_video(url):
|
4 |
+
yt=pytube.YouTube(url)
|
5 |
+
video_files=yt.streams.first()
|
6 |
+
video_path=video_files.download()
|
7 |
+
return video_path
|
8 |
+
|