Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 598 Bytes
#!/usr/bin/python
import argparse
import os
import subprocess
# Command line parser
parser = argparse.ArgumentParser(description='A quick and dirty way to create \
a living youtube playlist downloader')
parser.add_argument('-p',
'--path of Playlist.txt',
help='Path of Playlist.txt file and folder',
required=True)
args = vars(parser.parse_args())
os.chdir(args['path of Playlist.txt'])
playlist = open('Playlist.txt', 'r')
for line in playlist.readlines():
subprocess.call(['youtube-dl', line])