Last active
July 25, 2018 18:37
-
-
Save kassane/c5b57753af9915ba1995914e817a5be9 to your computer and use it in GitHub Desktop.
Simple youtube downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
DOWNLOADER LIST - Requires YOUTUBE-DL (Python 3.6.x) | |
Date: 07/25/2018 | |
@author: Kassany | |
''' | |
from os import system | |
def download(videos): | |
print(10*'\n') | |
print('Preparing to download:') | |
for i in range(len(videos)): | |
system(f"youtube-dl -ciwf 22 {videos[i]}") | |
if __name__ == '__main__': | |
video = list() | |
qtd = int(input('Number of videos: ')) | |
while(len(video) < qtd): | |
url = input('Enter the url: ') | |
video.append(url) | |
download(video) | |
print("Done!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment