Closed acoomans closed 12 years ago
Thanks, I hadn't noticed it. The problem is that the way I get that list is a bit hacky, basically I just go to https://www.coursera.org/landing/hub.php, get all links for the courses over there and take the part before the -class and assume it is the right id for that class. It works for most classes but there are some problems:
So, there are two solutions to this:
If nobody sugests a way to make the command more reliable I'll add the hack, but I'll wait a bit to see whether some suggestion comes.
Again, thanks for reporting it!
Hey Francisco,
Here's a suggestion: from the landing page, go to each course by following its link (ie http://www.game-theory-class.org/). You'll be redirected to a coursera page like https://class.coursera.org/gametheory/auth/welcome (if you're not logged in yet) which contains the real course ID (ie gametheory)
In the case of not-yet-started courses, like computer vision, you are not redirected to a https://class.coursera.org/ link.
Hope it helps! -- AC
Yes, that might work, although it will make the command run much slower since it will require a request for each class. I'll try to implement it as soon as I have the time and we'll see how fast I can make it run.
Ok, I did exactly what you proposed, and with the addition of some threading through the use of the multiprocessing module, it is nearly as fast as it was before. Thanks for the sugestion!
Nice! Good work!
./coursera list-course-ids
command gives "modelthinker" as id; should be "modelthinking"