Last active
August 25, 2018 17:21
download pdfs from http://www.deeplearningbook.org/
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
#!/usr/bin/env python | |
import pdfkit | |
chapters = [ | |
'intro', | |
'linear_algebra', | |
'prob', | |
'numerical', | |
'ml', | |
'mlp', | |
'regularization', | |
'optimization', | |
'convnets', | |
'rnn', | |
'guidelines', | |
'applications', | |
'linear_factors', | |
'autoencoders', | |
'representation', | |
'graphical_models', | |
'monte_carlo', | |
'partition', | |
'inference', | |
'generative_models', | |
] | |
def main(): | |
for idx, chapter in enumerate(chapters): | |
print chapter | |
url = 'http://www.deeplearningbook.org/contents/%s.html'%chapter | |
fname = '%02d-%s.pdf'%(idx+1, chapter) | |
pdfkit.from_url(url, fname) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, why I use this script and get the empty pdf? I use Ubuntu 16