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

Can you 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

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.

Can I read O'Reilly books offline? ›

Yes, the O'Reilly app for iOS and Android allows for offline reading and caching of chapters and books.

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? ›

To add an ePub file to Apple Books using an iPhone/iPad:

Tap on the downloads icon in the top right corner, then tap on the ePub file (named 978xxxxxxxxxx). You will be taken to the Apple Books app, where the eBook will be added to your library!

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:

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 format is an EPUB file? ›

What does .EPUB stand for? The .EPUB format is simply short for 'electronic publication', making it one of the easier filename abbreviations to understand. EPUB is the perfect way to describe files intended as the digital alternative to printed media, such as books and magazines.

What is the difference between EPUB and PRC? ›

EPUB is an open standard ebook format that is supported by almost all e-readers and devices. . PRC is the Mobipocket e-reader format which uses XHTML and Javascript.

How do I download books from learning O Reilly? ›

For a desktop or laptop, there is no downloading option. The e-book can be viewed on Edge, Chrome, and Firefox browsers. Yes, a download option is available for mobile devices. Android or iPhone App - Follow the O'Reilly app install instructions to download eBooks to your device.

How do I read Safari books offline? ›

Automatically save all Reading List items to iCloud for offline reading. Go to Settings > Safari, then turn on Automatically Save Offline (below Reading List).

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.

How do I download books 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.

Can you download books from OverDrive? ›

Sign into your library's OverDrive website with your library card (find the Sign in button under , if needed). ) to see books you've already borrowed. Tap Download for the borrowed book. If prompted, enter a free Adobe ID to complete the download.

Top Articles
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6464

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.