Giter Club home page Giter Club logo

Comments (17)

ricardont avatar ricardont commented on June 8, 2024 1

How can I check I'm already logged?

I had a similar issue, I logged in a browser first (which was asking me to pass a captcha), then I could download. Hope this help in your case

from safaribooks.

pierow2k avatar pierow2k commented on June 8, 2024

Getting the same error. Worked fine ~72 hours ago.

from safaribooks.

gad0lin avatar gad0lin commented on June 8, 2024

Same here

from safaribooks.

pierow2k avatar pierow2k commented on June 8, 2024

FWIW, the login page does still provide a form field with the csrfmiddlewaretoken value set.

baseURI: https://www.safaribooksonline.com/accounts/login/

<form action="/accounts/login/" id="login-form" method="post" class="js-login-view"> <input type="hidden" name="csrfmiddlewaretoken" value="xXXxYXxXXxxYYXXXxxxYxXXxxXxXXXxxxXXYXxxXXXXxXxXXXYxXXXYxXxYxxxYx">

from safaribooks.

gad0lin avatar gad0lin commented on June 8, 2024

got there as well :) moment ago through debugging
Simplified solution:
#52

from safaribooks.

pierow2k avatar pierow2k commented on June 8, 2024

Just tested - it looks like that fixes the issue.

from safaribooks.

Darkle avatar Darkle commented on June 8, 2024

That fix works for me as well. I think this might be related to the fact that https://www.safaribooksonline.com redirects to https://www.oreilly.com/ if you're not logged in.

from safaribooks.

ricardont avatar ricardont commented on June 8, 2024

Worked

from safaribooks.

lorenzodifuccia avatar lorenzodifuccia commented on June 8, 2024

Thanks all, I changed and merged the @gad0lin pull request.
https://github.com/lorenzodifuccia/safaribooks/blob/master/safaribooks.py#L420

Let me know!
How much I love the Open Source community!!!

from safaribooks.

racemus avatar racemus commented on June 8, 2024

Now it says:
[#] API: Out-of-Session (You do not have permission to perform this action.).

from safaribooks.

pierow2k avatar pierow2k commented on June 8, 2024

Now it says:
[#] API: Out-of-Session (You do not have permission to perform this action.).

The December 4 commit is working fine for me. I just did a fresh clone to confirm.

       ____     ___         _
      / __/__ _/ _/__ _____(_)
     _\ \/ _ `/ _/ _ `/ __/ /
    /___/\_,_/_/ \_,_/_/ /_/
      / _ )___  ___  / /__ ___
     / _  / _ \/ _ \/  '_/(_-<
    /____/\___/\___/_/\_\/___/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-] Logging into Safari Books Online...
[*] Retrieving book info...
[-] Title: xxxxxxxxxxxxxxxxxxxxxxxxx
[-] Authors: xxxxxxxxxxxxx
[-] Identifier: xxxxxxxxxxxxx
[-] ISBN: xxxxxxxxxxxxx
[-] Publishers: xxxxxxxxxxxxxxxx
[-] Rights: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[-] Description: xxxxxxxxxxxxxxxxx…

from safaribooks.

racemus avatar racemus commented on June 8, 2024

What could be wrong in my case?

from safaribooks.

lorenzodifuccia avatar lorenzodifuccia commented on June 8, 2024

Already logged? SSO credentials?

from safaribooks.

racemus avatar racemus commented on June 8, 2024

How can I check I'm already logged?

from safaribooks.

lorenzodifuccia avatar lorenzodifuccia commented on June 8, 2024

Try this new version and let me know!
Thanks for all the support ❤️

from safaribooks.

pmduc2012 avatar pmduc2012 commented on June 8, 2024

Anyone have fixed this error?

[-] Logging into Safari Books Online...
[#] Login: no CSRF Token found in the page. Unable to continue the login. Try again...
[+] Please delete all the <BOOK NAME>/OEBPS/*.xhtml files and restart the program.
[!] Aborting...

info_9780135299555.log

from safaribooks.

kientt86 avatar kientt86 commented on June 8, 2024

Got the same error,

[-] Logging into Safari Books Online... [#] Login: no CSRF Token found in the page. Unable to continue the login. Try again... [+] Please delete all the /OEBPS/*.xhtmlfiles and restart the program. [!] Aborting...

from safaribooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.