Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created April 19, 2014 09:48
Show Gist options
  • Save juanriaza/11079534 to your computer and use it in GitHub Desktop.
Save juanriaza/11079534 to your computer and use it in GitHub Desktop.
import requests
from lxml import etree
req = requests.get('http://pyvideo.org/category/50/pycon-us-2014/rss')
xml_tree = etree.fromstring(req.content)
urls = [v.get('url') for v in xml_tree.findall(".//enclosure")]
print ' && '.join(['youtube-dl %s -f best ' % u for u in urls])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment