A Python script to download all the videos for a course you are currently enrolled in from the new Coursera 2016 website
Requirements: Linux system (Windows instructions at the end), Python 2.7, pip, Selenium, Chromedriver (already included)
Get Python 2.7 here
Getting pip: sudo apt-get install python pip
Getting Selenium sudo pip install selenium
- Open up
cr_down.py
in your favourite text editor (eg:gedit cr_down.py
for n00bs) - Enter your details in line 9-19. These include your username, password, enrolled course link, directory to store and wait parameter (optional. you should be fine with relatively fast internet. Incase of slow internet, increase it in multiples of 5)
- Save and close. Incase you simply want to test the script, comment the lines 74 - 77
- Once you're ready, uncomment, save and run (
python cr_down.py
). A browser window will open. Mute the tab (or your computer), minimize the browser windows and let the script run in peace. Or don't minimize it and watch the download in process. Gets kinda boring after a while. Oh, and be patient 😇 (And don't press a single button on any of the pages that open, the script will most likely crash because you interfered)