Rights: Copyright © O 'Reilly Media, Inc. Title: Test-Driven Development with Python, 2nd Edition Authors: Harry J.W. You can also use the command-line version of Calibre with ebook-convert, e.g.: To ensure best quality of the output, I suggest you to always convert the EPUB obtained by the script to standard- EPUB with Calibre. Important: since the script only download HTML pages and create a raw EPUB, many of the CSS and XML/HTML directives are wrong for an E-Reader. You can configure proxies by setting on your system the environment variable HTTPS_PROXY or using the USE_PROXY directive into the script. If you don't want to cache the cookies, just use the -no-cookies option and provide all time your credential through the -cred option or the more safe -login one: this will prompt you for credential during the script execution. Pay attention if you use a shared PC, because everyone that has access to your files can steal your session. The next times you'll download a book, before session expires, you can omit the credential, because the program save your session cookies in a file called cookies.json.įor SSO, please use the sso_cookies.py program in order to create the cookies.json file from the SSO cookies retrieved by your browser session (please follow these steps). The first time you use the program, you'll have to specify your Safari Books Online account credentials (look here for special character). preserve-log Leave the `info_XXXXXXXXXXXXX.log` file even if there isn 't any error. Use this option if you 're going to export the EPUB to E-Readers like Amazon Kindle. kindle Add some CSS rules that block overflow on `table ` and no-cookies Prevent your session data to be saved into login Prompt for credentials used to perform the auth login cred Credentials used to perform the auth login on Safari Book digits ID that you want to download. Usage: safaribooks.py ĭownload and generate an EPUB of your favorite books from Safari Books Online.
0 Comments
Leave a Reply. |