Skip to content

Instantly share code, notes, and snippets.

@kassane
Last active July 25, 2018 18:37
Show Gist options
  • Save kassane/c5b57753af9915ba1995914e817a5be9 to your computer and use it in GitHub Desktop.
Save kassane/c5b57753af9915ba1995914e817a5be9 to your computer and use it in GitHub Desktop.
Simple youtube downloader
'''
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