mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-24 12:31:11 +00:00
15 lines
319 B
Python
15 lines
319 B
Python
from pytube import YouTube
|
|
|
|
link = input("Enter URL of YouTube video: ")
|
|
youtube = YouTube(link)
|
|
|
|
videos = youtube.streams.all()
|
|
videos_list = list(enumerate(videos))
|
|
|
|
for i in videos_list:
|
|
print(i)
|
|
|
|
strm = int(input("Enter index number: "))
|
|
videos[strm].download()
|
|
print("YouTube video Downloaded successfully!!")
|