jplehmann/coursera — pull request #19 by rbrito (2012-09-20 08:51:47+00:00)
Title: Allow use the `.netrc` file for storing user credentials

The purpose of this patch is to enable the user to avoid typing passwords
directly on the command line, as that:

* Is a security problem, since other users can easily see the credentials of
the current user via a simple invocation of the `ps` program.
* Is tiresome to always type the same (long) parameters in, especially if
you have a strong password.

To use the it, simply include a line similar to the one listed below in your
`~/.netrc` file (or whatever is the equivalent under your operating system),
changing the obvious parameters

machine coursera-dl login my.username@example.com password s3cr3t

and simply calling `coursera-dl` with the option `-n` or `--netrc`
instead of the options `-c` or `-u`.