Created
December 29, 2015 14:19
-
-
Save zehsilva/195a65d3010217771c6e to your computer and use it in GitHub Desktop.
download the free springer books listed here https://gist.github.com/bishboria/8326b17bbd652f34566a#file-springer-free-maths-books-md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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