Git Product home page Git Product logo

Comments (3)

soraxas avatar soraxas commented on July 17, 2024

Hi Mark thank you for reporting the issue.

This might be related to #32, which is currently staled without responses.

There are a few things that came into my mind. First thing is that it might be due to the credentials had not been set when accessing the page. Can you try to run it again with the --manual flag to ensure you had been properly logged in before continuing the script, i.e.,

python3 echo360.py  https://echo360.org.uk/section/82a37ff6-132c-4300-91dd-48eb0a18214d/home --debug --firefox --manual

(type continue in the terminal after logging in within the browser)

Secondly, if the above didn't affect the final result, it is strange that accessing https://echo360.org.uk/section/XXXX/syllabus returns 404 even though the login is successful. It might be due to some browser compatibility? If you have chrome installed as well you can try to see if that make any differences. Finally, I'm not sure if it is due to the user agent string set within the script that causes the 404 results. Is that any way that you can successfully access the syllabus within the controlled browser, as opposed to the existing browser?

from echo360.

vrossum avatar vrossum commented on July 17, 2024

Thanks, with manual it works!

I realize I was not clear. Without manual, I get the 404 error because I am not presented with a login prompt. Echo.org.uk redirects the login from login.echo.uk to pingone once you give your username. In the manual mode that works ok, but without manual, it fails.

from echo360.

soraxas avatar soraxas commented on July 17, 2024

Thanks @vrossum for reporting back, and I'm glad that it works!

The automatic redirection works by checking for the existence of some special cookies set by the SSO. Perhaps the detection mechanism is not sophisticated enough and had performed a redirection before a successful login. I will make the manual mode default to avoid similar confusion.

from echo360.

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.