Created
July 6, 2014 17:42
-
-
Save fommil/5761e86671f33a615f9b to your computer and use it in GitHub Desktop.
Download Feynman Lectures
This file contains hidden or 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
#!/bin/sh | |
#./wkhtmltopdf http://www.feynmanlectures.caltech.edu/I_51.html | |
OPTS="--proxy localhost:3128 --javascript-delay 20000 --no-stop-slow-scripts" | |
for PAGE in `seq -w 1 52` ; do | |
echo ./wkhtmltopdf http://www.feynmanlectures.caltech.edu/I_${PAGE}.html $OPTS i_${PAGE}.pdf | |
done | |
for PAGE in `seq -w 1 42` ; do | |
./wkhtmltopdf http://www.feynmanlectures.caltech.edu/II_${PAGE}.html $OPTS ii_${PAGE}.pdf | |
done | |
for PAGE in `seq -w 1 21` ; do | |
./wkhtmltopdf http://www.feynmanlectures.caltech.edu/III_${PAGE}.html $OPTS iii_${PAGE}.pdf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment