Skip to content

Instantly share code, notes, and snippets.

@thepagan
Forked from augbog/Free O'Reilly Books.md
Last active April 26, 2019 14:40
Show Gist options
  • Save thepagan/fbbe80b60c0773692935edc2a447b10e to your computer and use it in GitHub Desktop.
Save thepagan/fbbe80b60c0773692935edc2a447b10e to your computer and use it in GitHub Desktop.
Free O'Reilly Books download script for OSX
#!/bin/bash
# PDF downloads
mkdir pdf
cd pdf
curl -O http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
curl -O http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.pdf
curl -O http://www.oreilly.com/programming/free/files/java-the-legend.pdf
curl -O http://www.oreilly.com/programming/free/files/introducing-java-8.pdf
curl -O http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.pdf
curl -O http://www.oreilly.com/programming/free/files/20-python-libraries-you-arent-using-but-should.pdf
curl -O http://www.oreilly.com/programming/free/files/hadoop-with-python.pdf
curl -O http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.pdf
curl -O http://www.oreilly.com/programming/free/files/functional-programming-python.pdf
curl -O http://www.oreilly.com/programming/free/files/python-in-education.pdf
curl -O http://www.oreilly.com/programming/free/files/from-future-import-python.pdf
curl -O http://www.oreilly.com/programming/free/files/trends-shaping-the-london-tech-scene.pdf
curl -O http://www.oreilly.com/programming/free/files/2016-european-software-development-salary-survey.pdf
curl -O http://www.oreilly.com/programming/free/files/2016-software-development-salary-survey-report.pdf
curl -O http://www.oreilly.com/programming/free/files/why-rust.pdf
curl -O http://www.oreilly.com/programming/free/files/c++-today.pdf
curl -O http://www.oreilly.com/programming/free/files/analyzing-visualizing-data-f-sharp.pdf
curl -O http://www.oreilly.com/programming/free/files/rxjava-for-android-app-development.pdf
curl -O http://www.oreilly.com/programming/free/files/swift-pocket-reference.pdf
curl -O http://www.oreilly.com/programming/free/files/ten-steps-to-linux-survival.pdf
curl -O http://www.oreilly.com/programming/free/files/open-by-design.pdf
curl -O http://www.oreilly.com/programming/free/files/getting-started-with-innersource.pdf
curl -O http://www.oreilly.com/programming/free/files/microservices-antipatterns-and-pitfalls.pdf
curl -O http://www.oreilly.com/programming/free/files/microservices-vs-service-oriented-architecture.pdf
curl -O http://www.oreilly.com/programming/free/files/software-architecture-patterns.pdf
curl -O http://www.oreilly.com/programming/free/files/migrating-cloud-native-application-architectures.pdf
curl -O http://www.oreilly.com/programming/free/files/reactive-microservices-architecture-orm.pdf
curl -O http://www.oreilly.com/programming/free/files/engineering-managers-guide-design-patterns.pdf
curl -O http://www.oreilly.com/programming/free/files/azure-for-developers.pdf
curl -O http://www.oreilly.com/iot/free/files/ambient-computing.pdf
curl -O http://www.oreilly.com/iot/free/files/governing-the-iot.pdf
curl -O http://www.oreilly.com/iot/free/files/iot-opportunities-challenges.pdf
curl -O http://www.oreilly.com/iot/free/files/creating-functional-teams-for-iot.pdf
curl -O http://www.oreilly.com/iot/free/files/building-a-hardware-business.pdf
curl -O http://www.oreilly.com/iot/free/files/when-hardware-meets-software.pdf
curl -O http://www.oreilly.com/iot/free/files/what-is-the-internet-of-things.pdf
curl -O http://www.oreilly.com/iot/free/files/software-above-device.pdf
curl -O http://www.oreilly.com/iot/free/files/software-hardware-collide.pdf
curl -O http://www.oreilly.com/iot/free/files/hardware-by-the-numbers.pdf
curl -O http://www.oreilly.com/programming/free/files/why-reactive.pdf
cd ..
# epub downloads
mkdir epub
cd epub
curl -O http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
curl -O http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.epub
curl -O http://www.oreilly.com/programming/free/files/java-the-legend.epub
curl -O http://www.oreilly.com/programming/free/files/introducing-java-8.epub
curl -O http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.epub
curl -O http://www.oreilly.com/programming/free/files/20-python-libraries-you-arent-using-but-should.epub
curl -O http://www.oreilly.com/programming/free/files/hadoop-with-python.epub
curl -O http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.epub
curl -O http://www.oreilly.com/programming/free/files/functional-programming-python.epub
curl -O http://www.oreilly.com/programming/free/files/python-in-education.epub
curl -O http://www.oreilly.com/programming/free/files/from-future-import-python.epub
curl -O http://www.oreilly.com/programming/free/files/trends-shaping-the-london-tech-scene.epub
curl -O http://www.oreilly.com/programming/free/files/why-rust.epub
curl -O http://www.oreilly.com/programming/free/files/c++-today.epub
curl -O http://www.oreilly.com/programming/free/files/analyzing-visualizing-data-f-sharp.epub
curl -O http://www.oreilly.com/programming/free/files/rxjava-for-android-app-development.epub
curl -O http://www.oreilly.com/programming/free/files/swift-pocket-reference.epub
curl -O http://www.oreilly.com/programming/free/files/ten-steps-to-linux-survival.epub
curl -O http://www.oreilly.com/programming/free/files/open-by-design.epub
curl -O http://www.oreilly.com/programming/free/files/getting-started-with-innersource.epub
curl -O http://www.oreilly.com/programming/free/files/microservices-antipatterns-and-pitfalls.epub
curl -O http://www.oreilly.com/programming/free/files/microservices-vs-service-oriented-architecture.epub
curl -O http://www.oreilly.com/programming/free/files/software-architecture-patterns.epub
curl -O http://www.oreilly.com/programming/free/files/migrating-cloud-native-application-architectures.epub
curl -O http://www.oreilly.com/programming/free/files/reactive-microservices-architecture-orm.epub
curl -O http://www.oreilly.com/programming/free/files/engineering-managers-guide-design-patterns.epub
curl -O http://www.oreilly.com/programming/free/files/azure-for-developers.epub
curl -O http://www.oreilly.com/iot/free/files/ambient-computing.epub
curl -O http://www.oreilly.com/iot/free/files/governing-the-iot.epub
curl -O http://www.oreilly.com/iot/free/files/iot-opportunities-challenges.epub
curl -O http://www.oreilly.com/iot/free/files/creating-functional-teams-for-iot.epub
curl -O http://www.oreilly.com/iot/free/files/building-a-hardware-business.epub
curl -O http://www.oreilly.com/iot/free/files/when-hardware-meets-software.epub
curl -O http://www.oreilly.com/iot/free/files/what-is-the-internet-of-things.epub
curl -O http://www.oreilly.com/iot/free/files/software-above-device.epub
curl -O http://www.oreilly.com/iot/free/files/hardware-by-the-numbers.epub
curl -O http://www.oreilly.com/programming/free/files/why-reactive.epub
cd ..
# mobi downloads
mkdir mobi
cd mobi
curl -O http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.mobi
curl -O http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.mobi
curl -O http://www.oreilly.com/programming/free/files/java-the-legend.mobi
curl -O http://www.oreilly.com/programming/free/files/introducing-java-8.mobi
curl -O http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.mobi
curl -O http://www.oreilly.com/programming/free/files/20-python-libraries-you-arent-using-but-should.mobi
curl -O http://www.oreilly.com/programming/free/files/hadoop-with-python.mobi
curl -O http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.mobi
curl -O http://www.oreilly.com/programming/free/files/functional-programming-python.mobi
curl -O http://www.oreilly.com/programming/free/files/python-in-education.mobi
curl -O http://www.oreilly.com/programming/free/files/from-future-import-python.mobi
curl -O http://www.oreilly.com/programming/free/files/trends-shaping-the-london-tech-scene.mobi
curl -O http://www.oreilly.com/programming/free/files/why-rust.mobi
curl -O http://www.oreilly.com/programming/free/files/c++-today.mobi
curl -O http://www.oreilly.com/programming/free/files/analyzing-visualizing-data-f-sharp.mobi
curl -O http://www.oreilly.com/programming/free/files/rxjava-for-android-app-development.mobi
curl -O http://www.oreilly.com/programming/free/files/swift-pocket-reference.mobi
curl -O http://www.oreilly.com/programming/free/files/ten-steps-to-linux-survival.mobi
curl -O http://www.oreilly.com/programming/free/files/open-by-design.mobi
curl -O http://www.oreilly.com/programming/free/files/getting-started-with-innersource.mobi
curl -O http://www.oreilly.com/programming/free/files/microservices-antipatterns-and-pitfalls.mobi
curl -O http://www.oreilly.com/programming/free/files/microservices-vs-service-oriented-architecture.mobi
curl -O http://www.oreilly.com/programming/free/files/software-architecture-patterns.mobi
curl -O http://www.oreilly.com/programming/free/files/migrating-cloud-native-application-architectures.mobi
curl -O http://www.oreilly.com/programming/free/files/reactive-microservices-architecture-orm.mobi
curl -O http://www.oreilly.com/programming/free/files/engineering-managers-guide-design-patterns.mobi
curl -O http://www.oreilly.com/programming/free/files/azure-for-developers.mobi
curl -O http://www.oreilly.com/iot/free/files/ambient-computing.mobi
curl -O http://www.oreilly.com/iot/free/files/governing-the-iot.mobi
curl -O http://www.oreilly.com/iot/free/files/iot-opportunities-challenges.mobi
curl -O http://www.oreilly.com/iot/free/files/creating-functional-teams-for-iot.mobi
curl -O http://www.oreilly.com/iot/free/files/when-hardware-meets-software.mobi
curl -O http://www.oreilly.com/iot/free/files/what-is-the-internet-of-things.mobi
curl -O http://www.oreilly.com/iot/free/files/software-above-device.mobi
curl -O http://www.oreilly.com/iot/free/files/hardware-by-the-numbers.mobi
curl -O http://www.oreilly.com/programming/free/files/why-reactive.mobi
cd ..

Free O'Reilly books and convenient script to make directories for each filetype and download those filetypes to the directories.

Example: BASEDIR PDF PDF books EPUB EPUB books MOBI MOBI books

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

As well as thanks to /u/augbog for providing a starting point.

How to use:

  1. Take the download-osx.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download-osx.sh should do it)
  3. Run ./download-osx.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment