lorenzodifuccia / safaribooks

Download and generate EPUB of your favorite books from O'Reilly Learning (aka Safari Books Online) library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use the `--cred` or `--login` options in order to perform the auth login to Safari. Aborting...

holzkohlengrill opened this issue · comments

Since a while I get the following error:

[-] Logging into Safari Books Online...
[-] Successfully authenticated.
[*] Retrieving book info...
[#] API: [+] Use the `--cred` or `--login` options in order to perform the auth login to Safari.
[!] Aborting...

It seems that the authentication was successful but the script is complaining anyway about it.
Any suggestions/ideas?

I just got the same error message, but found the problem wasn't this project, but that I did use an invalid book ID. (I thought I have the book id in the clipboard, but instead I had my password in it.)

For me that is not the case.
I had one ID for testing I reuse all the time and that one also stopped working.

commented

hi guys can you help? I had to reformat my pc, an reinstall python 3.7 and safaribooks and created a new account on safari.
and when i run the safaribooks i`m getting the unable to perform auth login to Safari Books Online
invalid credentials but the account is OK, i can log into the website with it

[04/Nov/2021 11:53:39] ** Welcome to SafariBooks! **
[04/Nov/2021 11:53:39] Logging into Safari Books Online...
[04/Nov/2021 11:53:42] Login: unable to perform auth login to Safari Books Online.
[*] Details:
Unexpected error!
[04/Nov/2021 11:53:42] Last request done:
URL: https://www.oreilly.com/member/auth/login/
DATA: None
OTHERS: {'json': {'email': 'pedrog213180@mail.com', 'password': 'XXXXXXXXXXX', 'redirect_uri': 'https://api.oreilly.com%2Fapi%2Fv1%2Fauth%2Fopenid%2Fauthorize%2F%3Fclient_id%3D235442%26redirect_uri%3Dhttps%3A%2F%2Flearning.oreilly.com%2Fcomplete%2Funified%2F%26state%3D6Lz1O9gkXXXXXXXXXXXXXXXsB0px%26response_type%3Dcode%26scope%3Dopenid%2Bprofile%2Bemail'}}

400
Server: istio-envoy
Vary: Accept, Cookie, Origin,Accept, Accept-Encoding, Authorization, Cookie,Accept, Accept-Encoding, Authorization, Cookie
Content-Type: application/json
strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains
surrogate-key: groot groot-api, groot_frontend_ds groot_frontend_ds-pages
x-envoy-upstream-service-time: 349
x-content-type-options: nosniff, nosniff, nosniff
Allow: POST, OPTIONS
x-frame-options: DENY
referrer-policy: same-origin
Content-Length: 37
Expires: Thu, 04 Nov 2021 14:53:42 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 04 Nov 2021 14:53:42 GMT
Connection: close

{"credentials":"invalid_credentials"}

commented

Never mind guys, i was typing the command wrong it seems that there s a space after de .com and the colon for the password.
it works fine now :)

@holzkohlengrill What is the id you use for testing?

This part of the code tries to read info from https://learning.oreilly.com/api/v1/book/PUTTHEIDHERE/ Can you access this page?

Any update?

Any update so far?