Skip to content
Newer
Older
100755 15 lines (11 sloc) 363 Bytes
cabddbc @codeinthehole Updated README, added hashbangs to fetching scripts
authored Mar 18, 2012
1 #!/usr/bin/env python
ab60eb2 @codeinthehole Added script for downloading a single pyvideo
authored Mar 17, 2012
2 import sys
e25c732 @codeinthehole First working version
authored Mar 15, 2012
3
ed3f765 @codeinthehole Split out pyvideo logic into own module
authored Mar 17, 2012
4 from pyvideo import fetch_youtube_urls
ab60eb2 @codeinthehole Added script for downloading a single pyvideo
authored Mar 17, 2012
5 from download import download
e25c732 @codeinthehole First working version
authored Mar 15, 2012
6
7 if __name__ == '__main__':
ab60eb2 @codeinthehole Added script for downloading a single pyvideo
authored Mar 17, 2012
8 if len(sys.argv) < 2:
9 pyvid_url = 'http://pyvideo.org/category/17/pycon-us-2012'
10 else:
11 pyvid_url = sys.argv[1]
e25c732 @codeinthehole First working version
authored Mar 15, 2012
12
ab60eb2 @codeinthehole Added script for downloading a single pyvideo
authored Mar 17, 2012
13 for youtube_url, name in fetch_youtube_urls(pyvid_url):
14 download(youtube_url, name)
Something went wrong with that request. Please try again.