Step 1
Have coursera account: username and password. If not, come here and get one.
Step 2
Be enrolled in your interested class, for example, machine-learning.
Step 3
Install coursera-dl. Read README to know how to install.
Step 4
coursera-dl -u [username] -p [password] machine-learning