

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.
Download epub books download#
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.
