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

Unknown class #179

Open
marcofat opened this issue Apr 13, 2015 · 2 comments
Open

Unknown class #179

marcofat opened this issue Apr 13, 2015 · 2 comments

Comments

@marcofat
Copy link

Hello, I downloaded without any problem the “Algorithms: Design and Analysis, Part 1″ course using the command line:
“coursera-dl -u myusername -p mypassword -d /my/coursera/courses/ algo-2012-001″

Now I’m trying to download the “competitive strategy” course material (https://www.coursera.org/learn/competitivestrategy) and I would like to ask you a piece of advice in choosing the right course name from the url to put into the command line.

If I use “coursera-dl -u myusername -p mypassword -d /my/coursera/courses/ competitivestrategy” I get the following:
“Exception: Unknown class competitivestrategy”

If I use “coursera-dl -u myusername -p mypassword -d /my/coursera/courses/ learn/competitivestrategy” I get the following:
“Exception: Failed to find csrf cookie”

Thank you for your help and the great script!

@mishari
Copy link

mishari commented Apr 27, 2015

I am having the same issue, the class https://www.coursera.org/learn/competitivestrategy seems to have a new page format with no download button.

Traceback (most recent call last):
  File "/my_env/bin/coursera-dl", line 9, in <module>
    load_entry_point('coursera-dl==3.1.1', 'console_scripts', 'coursera-dl')()
  File "/my_env/lib/python2.7/site-packages/courseradownloader/courseradownloader.py", line 654, in main
    d.download_course(cn,dest_dir=args.dest_dir,reverse_sections=args.reverse,gzip_courses = args.gzip_courses)
  File "/my_env/lib/python2.7/site-packages/courseradownloader/courseradownloader.py", line 418, in download_course
    self.browser.open(self.AUTH_URL % cname,timeout=self.TIMEOUT)
  File "/my_env/lib/python2.7/site-packages/mechanize/_mechanize.py", line 203, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/my_env/lib/python2.7/site-packages/mechanize/_mechanize.py", line 255, in _mech_open
    raise response
mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found

@mishari
Copy link

mishari commented Apr 27, 2015

I just realized this is a duplicate of #151

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

No branches or pull requests

2 participants