Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2012 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4356672 to your computer and use it in GitHub Desktop.
Save anonymous/4356672 to your computer and use it in GitHub Desktop.
import simplejson, requests, urllib
for z in simplejson.loads(requests.get("http://wolnelektury.pl/api/books/").content):
p = simplejson.loads(requests.get(z['href']).content)
if p['parent'] is None:
urllib.urlretrieve(p['epub'], p['title'] + '.pub')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment