added --path argument and logic so that you can choose where to download to
path made platform-independent; dirs simplified + --verbose-dirs option

- previously classname was included in section dir, but this has been removed (use --verbose-dirs for same behavior)
  - MXPlayer only organizes videos 1 directory deep, which is why I prefer the verbose mode
platform-specific notes
- added --add-class argument to specify additional classes to retrieve
- updated documentation with path and additional class examples
Added graceful exit if the course name if not valid
Merge pull request #32 from xsyn/master

Exception handling on course name.
README.md: Make lines at most 80 characters long.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
README.md: Add more comments about Beautiful Soup 4.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Make docstring lines shorter than 80 characters.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Fix docstring placement.

A docstring is only a valid docstring if it is the first statement in a
function, method, class or module:

    http://www.python.org/dev/peps/pep-0257/

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Minor cosmetic enhancement of docstrings.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Fix imports to be compliant with PEP-8.

While we are at it, remove duplicate import of the `tempfile` module.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Remove unused `urlparse` module.

My memory-starved (128MB total memory) NAS will thank us for this change.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
coursera-dl: Add import of the `errno` module.

The `errno` module is used in the function `mkdir_p` and the script will
stop working in the very common case of the destination directories already
existing.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Merge pull request #34 from rbrito/fixes/code-quality

Fixes/code quality
updated python version requirement to > 2.5
Avoid finding all urls when we only want the first one.
Merge pull request #35 from rbrito/avoid-useless-parsing

Avoid finding all urls when we only want the first one.
Add cURL support.
Merge pull request #36 from eataix/curl

Add cURL support.