Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created February 26, 2012 10:37
Show Gist options
  • Save juanriaza/1915938 to your computer and use it in GitHub Desktop.
Save juanriaza/1915938 to your computer and use it in GitHub Desktop.
import requests
from lxml.html import fromstring, iterlinks
print 'wget %s' % ' && wget '.join(['http://lsi.vc.ehu.es/pablogn/docencia/ficheros/ISO1112/%s' % l[2] for l in filter(lambda x: x[2].endswith('pdf'), iterlinks(fromstring(requests.get('http://lsi.vc.ehu.es/pablogn/docencia/ficheros/ISO1112/').content)))])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment