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

Downloader script possibly pointing to the wrong url #6

Closed
ccolorado opened this issue May 22, 2013 · 3 comments
Closed

Downloader script possibly pointing to the wrong url #6

ccolorado opened this issue May 22, 2013 · 3 comments
Labels

Comments

@ccolorado
Copy link

Hello, when trying the script and I get the following error:
$ python edu_10gen.py
Can't sign in

I review the code and the script seems to be trying to download from https://www.edx.org/login , this page returns a 404 in my browser.
If I print out the exception the error seems consistent.

Output:
$ python edu_10gen.py
HTTP Error 404: Not Found
Can't sign in

Code change :
--- a/edu_10gen.py
+++ b/edu_10gen.py
@@ -90,6 +90,7 @@ class TenGenBrowser(object):
print login_state.get('value')
return self._logged_in
except mechanize.HTTPError, e:

  •        print e
         sys.exit('Can\'t sign in')
    

    def list_courses(self):

@nonsleepr
Copy link
Owner

You should put courses.edx.org as DOMAIN instead of www.edx.org.

@ccolorado
Copy link
Author

Would you consider appropriate listing compatible websites that the script is intended for ?

My reasoning is that if I hadn't contacted you I would still be thinking that edx.org was where education.10gen.com stored it's content and probably would had tried the correct one.

Regards

@nonsleepr
Copy link
Owner

Not sure if my last commit will fix this, since I don't have edx account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants