How to download books (ePub format) from the O'Reilly Learning platform (safari books) (2024)

Learn how to download books from the O'Reilly Learning platform with your paid subscription.

I'm always looking new material to learn from, just like those +800 courses on my Udemy account, that maybe I will never finish ... but that's another story, I'd like to do the same with the famous books of Programming that you can find on the O'Reilly platform (I mean, reading them, not simply storing them).

You can access the O'Reilly Platform as an individual for $49 USD/month or $499/year. For sure, if you think that spending $49 dollars a month won't hurt you, it's recommendable to pay the subscribtion on the platform, considering the prices of buying every single book that you're interested on and assuming that you will read them, the fee that you pay for the online platform is really small and quite fair. However, as someone that lives in a third-world country (Colombia), $49 bucks right now are almost a quarter (1/4) of the minimum wage here in Colombia, so you know, I'd rather eat (now consider how expensive would it be to buy physical or digital books of similar prices). I would only be able to pay that for a couple of months, not the whole year, just as many other people of my country (and of course I'm not talking only about Colombia).

That's why I want to share with you, two useful methods to access most of the content that you can obtain while paying a single subscription of a month.

Important note: I'm not promoting something illegal though, do not get me wrong, to follow this tutorial you will need obligatorily:

  • An active O'Rilley Learning subscription of at least a month (you will invest $49 USD if you don't have a subscription already). In my case, I have a subscription thanks to my University, so I'm paying for it indirectly.
  • The books will be downloaded in the .epub format, so you need an EPub reader software installed on your computer. I use the Icecream Ebook Reader.

A. Using a Browser Extension (My O'Reilly Downloader) [Easier to use, for regular users]

My O'Reilly Downloader is a web browser extension available for Google Chrome and an add-on for Firefox that allows you to download with a simple click any book from the O'Reilly platform in .epub format with a single click. This option is the go-to if you don't have programming knowledge, it is quite straightforward, install the extension and click on a single button to obtain the book.

All you need to do is to install the extension in your browser, once you install it through the official store, search for any book that you want to download on the O'Reilly platform. Once you have it, on the right menu of the page of the book, you will find a tiny O'Reilly icon with a green icon over it (get ebook):

How to download books (ePub format) from the O'Reilly Learning platform (safari books) (1)

Just press it and wait until the extension prepares the EPub of the selected book. Once it processes all of the batches, a message that states that the "ePub download has been completed" will appear and the download will be triggered in your browser (book.epub):

How to download books (ePub format) from the O'Reilly Learning platform (safari books) (2)

You can open and read the file with any regular EBook reader.

B. Using a Docker container [For programmers]

Now if you're into programming just like me, there's a way to do this through the command line to automatize this project with code if you want to. There's an useful project namely O'Reilly Downloader whose code can be found at GitHub here, and it's basically a CLI tool that wraps the Safaribooks project on Docker.

You will need Docker installed in your computer to do it this way.

B.1. Accessing with your credentials

Downloading a book using this approach is quite easy, you only need to run the following command replacing the following parameters:

(docker run kirinnee/orly:latest login <id of the book> <email>:<password>) > "<BookName.epub>"

The command with some real parameters would look like this:

(docker run kirinnee/orly:latest login 9781788298025 [emailprotected]:12345) > "MyBook.epub"

Wait until the command finishes and you will have the file of the book.

B.2. Accessing through a SSO Login

If your O'Reilly account, just like in my case, doesn't have a password itself but it uses SSO (Single Sign On) because I get access through my University account, then you need to follow some extra steps to get it working. The first thing you need to do is to log in to the platform with your account, then go to your Profile (https://learning.oreilly.com/profile/).

In this page, we need to obtain the cookie of the browser in JSON format. The easiest way to do this is running the following script that will extract the cookie in the required format and will copy it into your clipboard. To run it press F12 in your browser, go to the console tab and paste the following code:

copy(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => { r[i[0]] = i[1]; return r;}, {})))

This will automatically copy the cookie in JSON format to your clipboard, now you need to paste its content in a new JSON file. Create the cookies.json file in your computer, paste the content that you have in the clipboard and save changes.

Note: you have do this everytime you want to download a book because the cookie needs to be updated with your current session.

Then, simply run the following command replacing:

  • <path/to/cookies.json>: the absolute or relative path to the cookies.json file created previously.
  • <id of the book>: the ID of the book that you want to download. For example if the URL of the book is https://learning.oreilly.com/library/view/magento-2/9781788298025/, the id would be 9781788298025.
  • <BookName.epub>: define the name of the output file.
(cat </path/to/cookies.json> | docker run -i kirinnee/orly:latest sso <id of the book>) > "<BookName.epub>"

The command with some real parameters would look like this:

(cat .\cookies.json | docker run -i kirinnee/orly:latest sso 9781788298025) > "magento2.epub"

And that's it:

How to download books (ePub format) from the O'Reilly Learning platform (safari books) (3)

Final thoughts

In my case, I started downloading 2 books Java: A Beginner's Guide, Eighth Edition 8th Edition, Kindle Edition, and Official Google Cloud Certified Associate Cloud Engineer Study Guide 1st Edition, Kindle Edition , both digital versions cost USD $47.48 on Amazon. so if you pay a monthly subscription, you already won:

How to download books (ePub format) from the O'Reilly Learning platform (safari books) (4)

I downloaded as well other books that I think i'll be reading soon due to my current job. Don't forget that the goal of having access to this kind of book, is to acquire knowledge that will allow you to earn money to pay for this kind of content, for sure buying the content directly from their creators is the best way to do it and support them, but until you can do that, this trick will help you to get on track.

How to download books (ePub format) from the O'Reilly Learning platform (safari books) (2024)

FAQs

How do I download books from O Reilly Learning? ›

The only way to download and read O'Reilly ebooks offline is to use their mobile app, which is available for Apple, Android, and Kindle Fire. The mobile app is called O'Reilly. It can be found in the Apple App Store, Google Play, or the Amazon App Store.

How do I download a book in EPUB? ›

To export your book in EPUB format, follow these steps:
  1. Go to the Google Play Books website.
  2. Sign in to your account.
  3. Click on the "Library" tab.
  4. Find the book that you want to export.
  5. Click on the three dots icon next to the book title.
  6. Select "Export."
  7. Select "Download EPUB."
Jan 19, 2024

How do I download books from Safari? ›

How do I download an ebook to an iPad using Safari?
  1. Open the ebook in the online reader and click the download arrow.
  2. Select a download length and format, then click “Download Your Book”
  3. A prompt will appear asking if you would like to download the file.

What format are O Reilly ebooks in? ›

All O'Reilly titles distributed by eBooks.com are DRM-free. They can be read online or downloaded in simple EPUB or PDF format.

How do I access books from O Reilly? ›

O'Reilly members get unlimited access to books, live events, courses curated by job role, and more from O'Reilly and nearly 200 top publishers.

How do I download books from the books app? ›

You must be signed in to the Book Store or Audiobook Store with the same Apple ID you used to buy or download the books.
  1. In the Books app on your Mac, click All (or another collection) in the sidebar.
  2. Double-click a book or audiobook that has an iCloud status icon below it to download and open it.

How do I download EPUB books on IOS? ›

Make sure you've downloaded the iBooks application from the App Store onto your device. Connect your device to your computer, and then open iTunes on your computer. Drag the ePub file to Books, listed on the left side of the iTunes window, under Library. Synchronize your device with iTunes.

How do I save as an EPUB file? ›

Export your document as an EPUB
  1. Open your document in Pages.
  2. On iPhone, tap the More button. . ...
  3. Tap Export.
  4. Tap EPUB.
  5. Enter a title and an author name, then select any additional options for your book. Learn more about book creation options.
  6. Tap Export, then choose an option:
Apr 2, 2024

How to convert Apple Books to EPUB? ›

You can quickly export to EPUB and share your book on iPhone, iPad, or Mac:
  1. Tap or click the Share button. in the toolbar.
  2. Tap or click Export and Send in the Share window.
  3. Choose EPUB, then enter EPUB information and choose book options.
  4. Share or save the book:

How do I export Books from Safari? ›

From the Safari menu, select File>Export Bookmarks. Safari will prompt you to choose a location to save the file. Select your desired location, and click or tap Save.

How do I download directly from Safari? ›

Download an item
  1. In the Safari app on your Mac, click anything identified as a download link, or Control-click an image or other object on the webpage.
  2. Choose Download Linked File. (Some webpage items can't be downloaded.) Safari decompresses files such as . zip files after it downloads them.

How do I save a book in Safari? ›

In the Safari app on your Mac, navigate to the webpage or PDF you want to save. Click the Share button in the toolbar, then choose Save to Books. If Save to Books isn't listed, click More to add it to the list.

Can I download an eBook from O'Reilly? ›

You can download ebooks to the O'Reilly app and read them offline: Download the O'Reilly app from: Apple's App Store or Google Play.

What is the difference between EPUB and eBook? ›

An EPUB is an eBook file type or open format standard for "reflowable" content. That is, the text reflows to fit the window you are viewing, and you can resize the text to suit you. These files have the . EPUB extension.

What ereaders use the EPUB format? ›

The format can be read by the Kobo eReader, BlackBerry devices, Apple's Apple Books app running on Macintosh computers and iOS devices, Google Play Books app running on Android and iOS devices, Barnes & Noble Nook, Amazon Kindle Fire, Sony Reader, BeBook, Bookeen Cybook Gen3 (with firmware v2 and up), Adobe Digital ...

How do I download an ebook from McGraw? ›

  1. Downloading McGraw-Hill Education (MHE) e-books. ...
  2. Enter your redemption code in the 'Use your access code' field in the bottom right. ...
  3. If you have an MHE account, enter your username and password then click. ...
  4. You will receive an email from MHE with a website you can use to access your books.

How do I download books from learning hub? ›

You need to access the SAP learning library. Select a book that you want to download and click the download button next to it. The book will start downloading.

How do I download books from my library? ›

Eligible library books are available in the United States through a digital service called OverDrive. Confirm whether your library branch participates and offers Kindle books. Get a library card and a PIN from your local library. Go to the website of your local public library and search for "Kindle books" or "eBooks."

Is O Reilly online learning worth it? ›

The comprehensive and up-to-date content on O'Reilly helps me stay current with industry trends and skills. The platform offers a wide range of resources, including books, videos, and interactive tutorials, which cater to different learning styles. I find the expert-led live training sessions particularly valuable.

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 6159

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.