News for hackers. Stuff that matters.
Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @04:58AM (#11882735)
In case you want to download as may courses as possible before they fade away, here are some notes.

Please forgive me some mistakes, I wrote this a bit in a hurry.

===========================

1) Spawn a virtual server on DigitalOcean.

I am using the 40$/month in order to have 40GB of space, but my plan is to shut it down in a day or two.

The advantage is to have storage space AND super-fast connection.

If you don't want to spend money, here is my referral code:

https://m.do.co/c/867be540644c

This will give you 10$ credit for free.

2) Install screen, python-virtualenv, python3, python3-pip

3) edit ~/.bash_aliases:

    #!/usr/bin/env bash
    
    alias download="./coursera-dl -u <<username>> -p <<password>>"
    alias download_preview="./coursera-dl -b -u <<username>> -p <<password>>"
4) Install coursera-dl: see https://github.com/coursera-dl/coursera-dl#alternative-insta...

name the virtualenv "coursera", and place it in the root home directory

5) patch to use python3:

* pip3 install -r requirements.txt * patch coursera/coursera.dl:

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

Becomes:

    #!/usr/bin/env python3
    # -*- coding: utf-8 -*-
6) Edit ~/.bashrc

Add this lines at the end of the file:

    cd coursera
    source bin/activate
    cd coursera
=======================

The setup process is done. Here is how to use it:

1) Start a screen session: `screen -S coursera`

download_preview compilers-004

you can download more courses in parallel by creating another window (C-a c) and typing donwload_preview $coursename.

Re:Coursera shuts access to old platform courses by bburky on Saturday June 11, 2016 @02:48PM (#11884728)
If anyone wants these steps fully automated you can use this script:

https://gist.github.com/bburky/40317e6375b1262b1a1fc31072acf...

Just use it as a User Data file on DigitalOcean or elsewhere.

Edit: After doing this, I realized coursera-dl has a Docker script already. You may prefer it: https://github.com/coursera-dl/coursera-dl/tree/master/deplo...

Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @03:58PM (#11885050)
A complete list of the courses cited so far in this thread can be obtained via this shell one-liner:

    curl "https://news.ycombinator.com/item?id=11881767" | grep -Po "[a-zA-Z0-9-]*-0\d{2}" | sort | uniq
better:

    curl "https://news.ycombinator.com/item?id=11881767" | grep -Po "[a-zA-Z0-9-]*-0\d{2}" | sort | uniq | awk '{print "# " $0}'

You might might want to update your script :)
Re:Coursera shuts access to old platform courses by bburky on Saturday June 11, 2016 @04:39PM (#11885223)
Done.
Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @03:16PM (#11884865)
Awesome. Just awesome.
Re:Coursera shuts access to old platform courses by raldu on Saturday June 11, 2016 @08:29AM (#11883214)
So why not share all the downloaded content through a p2p torrent network, rather than to keep them in our own servers to ourselves, so that everyone else benefits?
Re:Coursera shuts access to old platform courses by shock on Saturday June 11, 2016 @09:03AM (#11883300)
The Coursera TOS prohibit this. Specificaly, "You may download content from our Services only for your personal, non-commercial use, unless you obtain Coursera's written permission to otherwise use the content."[0]

[0] - https://www.coursera.org/about/terms

Re:Coursera shuts access to old platform courses by komali2 on Saturday June 11, 2016 @11:33AM (#11883791)
That's fine, but so why don't we? If the whole purpose of downloading all these courses is so that we can continue to access them after Coursera goes full moneygrub mode, surely someone is willing to sacrifice their Coursera account for this?
Re:Coursera shuts access to old platform courses by joe563323 on Saturday June 11, 2016 @01:07PM (#11884234)
Lets think about it from ethical stand point. The kind of people who downloads and wants to learn is just a very tiny fraction of people in the entire tech population(Even most people in tech industry does not want to invest in learning). Their contribution will be significant. So what about the hard work the authors who had put in to create the course ? Don't worry their life will not be affected much(not like they will miss being billionaire). The only people who might get affected is the undeserved people who is taking advantage of intellects like the university.
Re:Coursera shuts access to old platform courses by userbinator on Sunday June 12, 2016 @01:55AM (#11886843)
ToS and even copyright law never stopped SciHub and LibGen.

An old saying I remember from my days in the ebook scene: "Those who want the knowledge will always find it."

Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @10:20AM (#11883530)
As someone else pointed out, that is not allowed by the TOS.

But quite frankly... now that such content is not freely available anymore, I expect that to begin circulating on the p2p networks anyway.

Re:Coursera shuts access to old platform courses by krick on Saturday June 11, 2016 @09:59PM (#11886288)
Speaking of which: a few years ago there was quite awesome astronomy course, which I didn't have time to finish in real-time, and the content was deleted as soon as the course ended. I liked it wa-ay better than any other astronomy-ish stuff they had (and still have) later: it was more about actually modelling the celestial sphere and understanding the movement of the planets, than vaguely speaking about contents of the universe. Does by any chance anyone know how I can try and find it somewhere else? All I remember is that the professor had long gray hair and beard, which isn't really google-able.
Re:Coursera shuts access to old platform courses by moha002 on Thursday June 16, 2016 @02:10PM (#11917829)
I took that course and I really enjoyed it. That's why, I downloaded it and uploaded it to drive when I heard that coursera is gonna delete it. Here's the link: https://drive.google.com/open?id=0B64NfOIwa64BVFJXQzNhTDM3ND... Keep looking up :D
Re:Coursera shuts access to old platform courses by tokipin on Sunday June 12, 2016 @01:17AM (#11886757)
you're probably thinking of "Introduction to Astronomy" by Ronen Plesser. that course was awesome.
Re:Coursera shuts access to old platform courses by krick on Sunday June 12, 2016 @01:58PM (#11889327)
Yes, thank you very much. That's exactly it!
Re:Coursera shuts access to old platform courses by r3bl on Saturday June 11, 2016 @10:56AM (#11883642)
Yup, in 20 days when the content becomes unavailable, people will trade them like they trade... well, pretty much anything that they can't get easily by following the law.
Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @03:21PM (#11884890)
I was thinking that it didn't come to my mind to sit down and download as much content as I could from courses because it was freely available.

What I realized is that even on the internet nothing lasts forever, and that I should always download stuff I like, just in case...

Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @06:47AM (#11882987)
Tested and successfully downloaded (about 30GB):

- recsys-001

- hwswinterface-002

- eefun-001

- experiments-001

- gametheory-003

- crypto-010

- pgm

- cariesmanagement-003

- algo2-003

- analyze-003

- audio-002

- ml-005

- sna-2012-001-staging

- spatialcomputing-001

- organalysis-003

- compilers-004

- modelthinking-006

- ggp-003

- algo-009

- intrologic-005

- automata

- linearopt-002

- matrix-002

Please add below this comment other coursed that can be downloaded.

Re:Coursera shuts access to old platform courses by dhawalhs on Saturday June 11, 2016 @01:31PM (#11884353)
Made a list of 220 courses that are still open for enrollment: https://docs.google.com/spreadsheets/d/1kaWxZG3krI83WfdzlExW...

I will work on figuring out the slugs next. For you now, you will need to signup for the course and figure it out. You can also find the same the list on Class Central where you can filter by subjects or sort by rating: https://www.class-central.com/collection/coursera-old-stack

Re:Coursera shuts access to old platform courses by raybb on Sunday June 12, 2016 @12:55AM (#11886705)
If you go the page where all your archived courses are and run this code it'll give you a list of the slugs :)

//////////Grab archived urls

var archived = document.getElementsByClassName("link-button primary"); var archivedUrls = []; var slugs = []; for (var i = 0; i < archived.length; i++){ archivedUrls.push(document.getElementsByClassName("link-button primary")[i].href); } //////////////////////////////

  function getDatas(LLL){
    $.ajax({
      url: LLL,
      dataType: 'text',
      success: function (data) {
        var re = /F[a-zA-Z0-9-]*-0\d{2}/;
        var info = data.match(re)[0];
        var fixeInfo = info.substring(1);
        slugs.push(fixeInfo);
        console.log(fixeInfo);
      }
    });
  }


var ii = 0; // set your counter to 1

function myLoop () { // create a loop function setTimeout(function () { // call a 3s setTimeout when the loop is called console.log(archivedUrls[ii]); getDatas(archivedUrls[ii]); ii++; // increment the counter if (ii < archivedUrls.length) { // if the counter < 10, call the loop function myLoop(); // .. again which will trigger another } else { console.log('Type "slugs" to view all slugs gathered'); } }, 1000) }

myLoop(); // start the loop

Re:Coursera shuts access to old platform courses by raybb on Wednesday June 15, 2016 @11:05PM (#11913645)
Here is a link to updated code to do this: https://github.com/RayBB/coursera-slug-extractor
Re:Coursera shuts access to old platform courses by raybb on Sunday June 12, 2016 @02:04AM (#11886862)
Here's a list of slugs for almost all of the courses! https://docs.google.com/spreadsheets/d/1W1PZEQbb1jnNh-EeFUoB...
Re:Coursera shuts access to old platform courses by glogla on Sunday June 12, 2016 @04:50AM (#11887261)
Some I managed to download are missing:

audio-002 eefun-001 experiments-001 hci model-thinking-006 recsys-001

Re:Coursera shuts access to old platform courses by dhawalhs on Sunday June 12, 2016 @02:31PM (#11889520)
I only listed courses that haven't been moved to the new platform yet. So courses like Model Thinking and Recommender Systems have been ported over. I suspect its the same for other courses that you listed.
Re:Coursera shuts access to old platform courses by dhawalhs on Sunday June 12, 2016 @02:30PM (#11889506)
Ahh...just saw this. I already updated the original document with the slugs.

Thanks!

Re:Coursera shuts access to old platform courses by akvar on Saturday June 11, 2016 @07:44AM (#11883102)
- neuralnets-2012-001

- scicomp-003

- mmds-002

- comparch-003

Re:Coursera shuts access to old platform courses by mkl on Saturday June 11, 2016 @08:42AM (#11883252)
How are you finding out the course names?
Re:Coursera shuts access to old platform courses by rahiel on Saturday June 11, 2016 @08:49AM (#11883268)
It's part of the course URL when you're enrolled at the course home, e.g:

  https://class.coursera.org/algs4partI-010 -> algs4partI-010
  https://www.coursera.org/learn/machine-learning/home/welcome -> machine-learning
(see https://github.com/coursera-dl/coursera-dl/wiki)
Re:Coursera shuts access to old platform courses by macmac on Monday June 20, 2016 @03:29AM (#11936605)
I am getting a 404 for the algo2-003, but the others work fine.
Re:Coursera shuts access to old platform courses by fao_ on Thursday June 16, 2016 @05:08PM (#11918875)
Is there any chance of you uploading any of these to something like mega and allowing people do download them?
Re:Coursera shuts access to old platform courses by cgrubb on Saturday June 11, 2016 @05:33PM (#11885436)
My downloads:

    - ac-005: Analytic Combinatorics
    - aofa-006: Analysis of Algorithms
    - neuralnets-2012-001: Neural Networks for Machine Learning
    - nlp: Natural Language Processing
Re:Coursera shuts access to old platform courses by tdullien on Sunday June 12, 2016 @09:46AM (#11888052)
Hey there,

I was enrolled in the 2013 edition of Analytic Combinatorics, but it seems that I am out of luck - no access to the materials either way. :-/

Does anyone happen to have the name of the 2013 edition? Or is it by design that these can no longer be accessed?

Re:Coursera shuts access to old platform courses by mziel on Saturday June 11, 2016 @08:08AM (#11883166)
hetero-004

algs4partI-010

algs4partII-007

Re:Coursera shuts access to old platform courses by fosco on Saturday June 11, 2016 @02:04PM (#11884508)
where can I get these and share? please let me know
Re:Coursera shuts access to old platform courses by drxyzzy on Saturday June 11, 2016 @03:05PM (#11884817)
eqp-004
Re:Coursera shuts access to old platform courses by shareknowledge on Saturday June 11, 2016 @10:06PM (#11886298)
http://pastebin.com/ESiirEjU

list of available courses, in format: course_session_id, course_link

Re:Coursera shuts access to old platform courses by shareknowledge on Sunday June 12, 2016 @06:33AM (#11887507)
found that list contained closed for enrollment sessions, new list http://pastebin.com/1N8ijd7p
Re:Coursera shuts access to old platform courses by ikeboy on Saturday June 11, 2016 @08:06AM (#11883162)
Can someone get the archive team on this?
Re:Coursera shuts access to old platform courses by glogla on Saturday June 11, 2016 @08:59AM (#11883283)
I don't think that would be legal. Coursera ToS definitely prohibits something like this.

I can see a case for a torrent with the courses mysteriously appearing on some torrent site and someone linking it here, though. Man, those cheeky pirates! They can't leave anything alone.

(I don't personally have bandwidth for something like that, sadly. Of course I'm also not a pirate.)

Re:Coursera shuts access to old platform courses by rpgmaker on Saturday June 11, 2016 @12:23PM (#11884018)
A violation of the "Coursera ToS" doesn't imply that something illegal was done. But even if it did I doubt that it would carry any weight outside of the US.
Re:Coursera shuts access to old platform courses by joe563323 on Saturday June 11, 2016 @01:11PM (#11884254)
> I don't think that would be legal. Coursera ToS definitely prohibits something like this.

Have some heart. This is completely Ethical. What about millions of people around the world who does not even have bank account to pay. Remember the authors does not get screwed. Their life will not get modified drastically. Only the undeserved people who are making money out of them.

Re:Coursera shuts access to old platform courses by j_s on Saturday June 11, 2016 @11:24PM (#11886473)
I wouldn't be surprised if they already had it. It would (unfortunately) be surprising if they chose to redistribute it, though.
Re:Coursera shuts access to old platform courses by znpy on Saturday June 11, 2016 @10:22AM (#11883535)
I would like to point out that I am only downloading such content for my personal use, and I am just helping other people do the same.
Re:Coursera shuts access to old platform courses by collinmanderson on Saturday June 11, 2016 @02:49PM (#11884731)
Thank you for using Python 3. :)
Re:Coursera shuts access to old platform courses by mmishu on Sunday June 12, 2016 @06:51AM (#11887540)
Can I do this with plural sight courses?
Re:Coursera shuts access to old platform courses by vardhanw on Sunday June 12, 2016 @01:46PM (#11889263)
I found this useful https://www.quora.com/What-are-the-ways-to-download-videos-f.... Of course it works only if you have an account.
Re:Coursera shuts access to old platform courses by babo on Saturday June 11, 2016 @02:45PM (#11884713)
- algo-005

- nlp

- machlearning-001

- maththink-004

- mmds-002

- pgm-003

- gametheory-003

- compilers-003