Merge pull request #119 from akashJainAJ11/master

files added for youtube video download
This commit is contained in:
Advaita Saha 2022-10-04 18:24:28 +05:30 committed by GitHub
commit c66057c1da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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!!")