Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Manual cookie.json setup section for README.md #351

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ $ python3 safaribooks.py --cred "account_mail@mail.com:password01" XXXXXXXXXXXXX
The ID is the digits that you find in the URL of the book description page:
`https://www.safaribooksonline.com/library/view/book-name/XXXXXXXXXXXXX/`
Like: `https://www.safaribooksonline.com/library/view/test-driven-development-with/9781491958698/`

#### Manual cookie.json setup

If `python3 safaribooks.py --cred "xx:xx" XXXXX` hangs over there. There is a quick way to bypass the problem temporarly by manually configure cookies.json file by export cookies from Chrome browser.

Steps:

1. Create cookies.json
2. Make sure you have [ExportThisCookie](https://chrome.google.com/webstore/detail/exportthiscookie/dannllckdimllhkiplchkcaoheibealk) installed on your Chrome browser
3. Login your safaribooks page on your Chrome browser
4. Use _ExportThisCookie_ extension to download the `cookies.txt` file
5. Copy content of `cookies.txt` into cookies.json (everything in `{}` include `{}` iteslf)
6. Try download your file again without using `--cred "xx:xx"`

#### Program options:
```shell
Expand Down