~tieong/download-course

f929d432ffcfa4b1cad57f35c89f1a2a2c700734 — Thomas Ieong 2 years ago 685bbab
Updated README,Changelog, and TODO
3 files changed, 21 insertions(+), 0 deletions(-)

M CHANGELOG.md
M README.md
A TODO
M CHANGELOG.md => CHANGELOG.md +2 -0
@@ 1,1 1,3 @@
# 1.0.0

- Dropped selenium in favour of requests

M README.md => README.md +14 -0
@@ 1,1 1,15 @@
# Download REPLACE_ME courses

Short script to download courses from the REPLACE_ME platform

```
download_course -u <user> -p <password> --city REPLACE_ME --promotion REPLACE_MEREPLACE_ME -o ~/Téléchargements
```

## Bug

- When the files have the same names (index.html, corrige.html) they will get redownloaded
  every time, because we only store in the json the name of the file and the etag, needs
  to store the file location as well.

  So far this only happened for like 4-5 files on the 300~ files available.

A TODO => TODO +5 -0
@@ 0,0 1,5 @@
- Need to refactor the get_materials, use recursion instead of for loops

- Fix the duplicates file name bug

- For the password prompt use getpass or env variables
\ No newline at end of file