files added for youtube video download

This commit is contained in:
Akash Jain 2022-10-04 17:00:23 +05:30
parent 5e42fdc82d
commit 419aae918b
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# Download YouTube video by URL
## Usage
- Clone the repo
- download the requirements
- run `python youtube_download.py`

View File

@ -0,0 +1,14 @@
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!!")