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.