vincegeratorix

youtube from file downloader

Dec 21st, 2013
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. #By Erick Merino Menares, alias:vincegeratorix
  2. import os
  3. archivo = str(input('Ingrese archivo con los videos, entre comillas: '))
  4. formato = str(input('Ingrese otras opciones, como el formato(s), entre comillas, incluya el "-f": '))
  5. with open(archivo) as f:
  6.     content = f.readlines()
  7. for x in range(0, len(content)):
  8.     cmd = str("youtube-dl" + " -o " + str(x+1).zfill(3) + "\"-%(title)s.%(ext)s\" " + formato + " " + content[x][0:-1])
  9.     print(cmd)
  10.     os.system(cmd)
Add Comment
Please, Sign In to add comment