mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-12-18 00:00:17 +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!!")
|