Git Product home page Git Product logo

Comments (5)

bwhurd avatar bwhurd commented on July 17, 2024 2

Hi, I really don't know what I'm doing, but I was able to fix the issue by editing the file named "downloader.py". It just adds a 20 second pause. Then I maximized the browser window to login that was made small and quickly logged in. I use the --chrome flag. Not sure if that is necessary. Good luck!

I added the following line with no indent to line 6 (inserted between "import re" line and "from .course import EchoCloudCourse" line):
import time

and I inserted the following line on line 181 (preceded by 3 indents) between "if self.setup_credential:" (line 180) and " sys.stdout.write(">> I'm gonna assume you are responsible enough to had "
time.sleep(20)

from echo360.

AlvinChen2020 avatar AlvinChen2020 commented on July 17, 2024 1

Hi, I really don't know what I'm doing, but I was able to fix the issue by editing the file named "downloader.py". It just adds a 20 second pause. Then I maximized the browser window to login that was made small and quickly logged in. I use the --chrome flag. Not sure if that is necessary. Good luck!

I added the following line with no indent to line 6 (inserted between "import re" line and "from .course import EchoCloudCourse" line):
import time

and I inserted the following line on line 181 (preceded by 3 indents) between "if self.setup_credential:" (line 180) and " sys.stdout.write(">> I'm gonna assume you are responsible enough to had "
time.sleep(20)

Although the mere suggested modification does not solve the problem, the extended time (I use 40 seconds) does help to find a workaround.

Instead of using SSO login, I actually logged in directly using my echo360 account. Since I never did that from echo306 webpage, I used the same email as with my school's SSO, and retrieved the password by going through "I forget the password" option. After login, I had to change my role from "instructor" to "student". Then the magic happens and the donwloading starts.

Thanks!

from echo360.

soraxas avatar soraxas commented on July 17, 2024 1

You can now run the module with

python echo360.py <echo360.org-URL> --manual

to disable automatic detection of credentials. One you have logged in, type

continue

in your terminal to continue.

from echo360.

soraxas avatar soraxas commented on July 17, 2024

Apology for the confusion as it seems like there are issues with the credential being not sufficient for some institutions?

The module works like this:

  1. If it detected the link is a echo360.org link, it will hang in the background within a loop.
  2. A browser instance will be spawned to allow you to login with your institution's SSO.
  3. It will keep checking in the background if the login token is set within the browser cookies
  4. When (3) is met, it will then proceed to retrieve your course's data.

This works for the most part as this issue is the first time I'm hearing about it. It seems like for you two's case the module thought the login token is set (step 3) while it was still not sufficient to access the course.

I will add in an extra flag --manual to allow you to manually disable step 3 and provide you have enough time to login (instead of using time.sleep(..)) and continue the process manually once you are done logging in.

from echo360.

bwhurd avatar bwhurd commented on July 17, 2024

thanks! really appreciate it.

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.