dgorissen / coursera-dl

A script for downloading course material (video's, pdfs, quizzes, etc) from coursera.org
http://dirkgorissen.com/2012/09/07/coursera-dl-a-coursera-download-script/
GNU General Public License v3.0
1.74k stars 299 forks source link

Failed to Authenticate #167

Closed zjllee closed 9 years ago

zjllee commented 9 years ago

C:\Apps\Python27\Scripts>coursera-dl -u @gmail.com -p **** -d D:\Course -w 7 procmin-001 Traceback (most recent call last): File "C:\Apps\Python27\Scripts\coursera-dl-script.py", line 9, in load_entry_point('coursera-dl==3.1', 'console_scripts', 'coursera-dl')() File "C:\Apps\Python27\lib\site-packages\courseradownloader\courseradownloader .py", line 649, in main d.login(args.course_names[0]) File "C:\Apps\Python27\lib\site-packages\courseradownloader\courseradownloader .py", line 168, in login raise Exception("Failed to authenticate as %s" % self.username) Exception: Failed to authenticate as @gmail.com

It was working just last week. I wonder what is wrong with it. Thank you for your help!

clampak commented 9 years ago

I have this same issue.

milkfan commented 9 years ago

I have this same issue. Already merged code with pull-request #166

dgorissen commented 9 years ago

@milkfan can you confirm the problem persists with the current master?

milkfan commented 9 years ago

@dgorissen I was on the branch mechanize. Confirm it's not working with the latest coursera-dl. Am I supposed to switch to the master?

milkfan commented 9 years ago

@dgorissen The master branch has not been updated for a while now, right? It's not working on either master or mechanize. However, as someone pointed out in issue #164, I can install coursera-dl==2.0.2 instead and it works fine for me.

dgorissen commented 9 years ago

Sorry I meant mechanize branch.

colablikje commented 9 years ago

I have the same issue. Are you suggesting to replace courseradownloader.py from the mechanize branch? I did that, but that isn't working either. (I don't want to steal the threat, just add that this is an issue that concerns more people)

poluekt commented 9 years ago

I don't think @danmbox verified the fix.

donalddominko commented 9 years ago

Working on Ubuntu 12.04 and I have the same issue. Not sure but did I merge everything as I should? This is how my folder looks now:

Dec 22 23:18 CHANGELOG.txt Oct 30 20:54 CONTRIBUTING.md Oct 30 21:08 coursera Oct 30 20:54 coursera-dl Oct 30 20:54 coursera-dl.bat Dec 22 23:18 courseradownloader Dec 22 23:18 LICENSE.txt Dec 22 23:18 MANIFEST.in Dec 22 23:18 README.md Dec 22 23:18 requirements.txt Dec 22 23:18 setup.py

As I understand @danmbox has to do the verification and then simple " git fetch https://github.com/dgorissen/coursera-dl" will do the trick?

danmbox commented 9 years ago

The current mechanize branch in this repository seems to WFM:

cd /tmp $ git clone git://github.com/dgorissen/coursera-dl.git $ cd coursera-dl $ git branch mechanize $ python courseradownloader/courseradownloader.py -u $USER -p $PASS healthliteracy-001

Does this work?

poluekt commented 9 years ago

worked for me. I had to download new version directly from the github web site. Is there a way to do it with pip?

danmbox commented 9 years ago

If the maintainer decides to bump the version and release to pypy...

donalddominko commented 9 years ago

I tried your version and had partial success. Did some download and then it hang so I did CTRL+C .. I'm posting entire output in case someone wants to reproduce and debug.

~/Documents/Workspace/Coursera.com/Data-Scientist-Specialization/Regression-Models$ python /tmp/coursera-dl/courseradownloader/courseradownloader.py -u USERNAME -p PASSWORD regmods-016 Coursera-dl v3.1 (html.parser) Logging in as 'USERNAME'...

Course 1 of 1

danmbox commented 9 years ago

Yeah, that used to happen every once in a while (on both branches I believe). Ctrl-C and re-download, possibly using the week filter to avoid checking perfectly fine videos.

dgorissen commented 9 years ago

Verified and @danmbox 's PR #164 works for me. Bumped coursera version on pypi.