Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.