Skip to content

Instantly share code, notes, and snippets.

@zehsilva
Created December 29, 2015 14:19
Show Gist options
  • Save zehsilva/195a65d3010217771c6e to your computer and use it in GitHub Desktop.
Save zehsilva/195a65d3010217771c6e to your computer and use it in GitHub Desktop.
import urllib
import re
from subprocess import call
fp=urllib.urlopen("https://gist.githubusercontent.com/bishboria/8326b17bbd652f34566a/raw/c20ec05dc4669b93f16d0b5c5824615dea42a956/springer-free-maths-books.md")
for line in fp:
matchObj = re.match( r'.*\((.*.pdf)\)', line)
if matchObj:
f=matchObj.group(1)
print f
call(["wget", f])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment