Closes #144
Closes #139 Closes #130 Closes #129 Closes #115 PR Closed #107 Closes #106 Closes #103 PR Closed #102 Closes #101 Closes #94 PR Closed #93 PR Closed #85 PR Closed #81
This commit is contained in:
parent
0164f05b36
commit
31d7dc9735
2 changed files with 80 additions and 42 deletions
|
|
@ -44,7 +44,7 @@ Like: `https://www.safaribooksonline.com/library/view/test-driven-development-wi
|
|||
#### Program options:
|
||||
```shell
|
||||
$ python3 safaribooks.py --help
|
||||
usage: safaribooks.py [--cred <EMAIL:PASS>] [--no-cookies] [--no-kindle]
|
||||
usage: safaribooks.py [--cred <EMAIL:PASS> | --login] [--no-cookies] [--no-kindle]
|
||||
[--preserve-log] [--help]
|
||||
<BOOK ID>
|
||||
|
||||
|
|
@ -60,6 +60,8 @@ optional arguments:
|
|||
--cred <EMAIL:PASS> Credentials used to perform the auth login on Safari
|
||||
Books Online.
|
||||
Es. ` --cred "account_mail@mail.com:password01" `.
|
||||
--login Prompt for credentials used to perform the auth login
|
||||
on Safari Books Online.
|
||||
--no-cookies Prevent your session data to be saved into
|
||||
`cookies.json` file.
|
||||
--no-kindle Remove some CSS rules that block overflow on `table`
|
||||
|
|
@ -74,9 +76,9 @@ The first time you use the program, you'll have to specify your Safari Books Onl
|
|||
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` (for **SSO** look the file format [`here`](/../../issues/2#issuecomment-367726544)).
|
||||
|
||||
Pay attention if you use a shared PC, because everyone that has access to your files can steal your session.
|
||||
If you don't want to cache the cookies, just use the `--no-cookies` option and provide all time your `--cred`.
|
||||
If you don't want to cache the cookies, just use the `--no-cookies` option and provide all time your `--cred` to perform `--login`.
|
||||
|
||||
You can configure proxies by setting on your system the environment variables `HTTP_PROXY` and `HTTPS_PROXY`.
|
||||
You can configure proxies by setting on your system the environment variable `HTTPS_PROXY`.
|
||||
|
||||
The program default options are thought for ensure best compatibilities for who want to export the `EPUB` to E-Readers like Amazon Kindle. If you want to do it, I suggest you to convert the `EPUB` to `AZW3` with [Calibre](https://calibre-ebook.com/).
|
||||
You can also convert the book to `MOBI` and if you'll do it with Calibre be sure to select `Ignore margins` in the conversion options:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue