diff --git a/coub-dl.py b/coub-dl.py new file mode 100644 index 0000000..5ba74fd --- /dev/null +++ b/coub-dl.py @@ -0,0 +1,15 @@ +from subprocess import call, check_output, STDOUT +from re import match +from sys import argv + +argv.append('https://coub.com/view/aeeuu') + +AUDIO_FILE = 'audio' +VIDEO_FILE = 'video' +URL = argv[1] if len(argv) > 0 else '' + +call(('/usr/bin/env', 'youtube-dl', '--extract-audio', + '--output', '{}.%(ext)s'.format(AUDIO_FILE), + URL)) +call(('/usr/bin/env', 'youtube-dl', '--output', '{}.%(ext)s'.format(VIDEO_FILE), + URL))