@github-actions[bot] github-actions[bot] authored on 27 Feb 2023
GitHub committed on 27 Feb 2023
.github fix: rename release assets 3 years ago
scripts fix: migrate to python 3.11 3 years ago
thu_learn_downloader fix: migrate to python 3.11 3 years ago
.gitignore fix: migrate to python 3.11 3 years ago
.pre-commit-config.yaml fix: migrate to python 3.11 3 years ago
CHANGELOG.md chore(main): release 0.1.4 (#24) 3 years ago
LICENSE docs(license): update copyright year(s) (#13) 3 years ago
README.md fix: migrate to python 3.11 3 years ago
config.yaml fix: migrate to python 3.11 3 years ago
demo.tape fix: migrate to python 3.11 3 years ago
entry_point.py fix: migrate to python 3.11 3 years ago
poetry.lock fix: migrate to python 3.11 3 years ago
pyproject.toml chore(main): release 0.1.4 (#24) 3 years ago
requirements.txt fix: migrate to python 3.11 3 years ago
README.md

thu-learn-downloader

Download everything from Web Learning of Tsinghua University

Demo

Demo

The resulting file structure looks like:

thu-learn
└── Quantum Mechanics(1)
   ├── docs
   │  └── 电子教案
   │     ├── 01-0量子力学介绍1.pdf
   │     └── 04-0量子力学介绍2.pdf
   └── work
      └── 01-第一周作业
         ├── attach-第一周作业.pdf
         ├── submit-第一周作业.pdf
         └── README.md

Features

  • pretty TUI powered by rich
  • auto set mtime of downloaded files according to timestamp of remote file
  • auto skip download when local file is newer
  • dump homework details into README.md in each homework folder
  • pretty markdown files powered by prettier (require prettier installed)

Usage

  1. Download pre-built binary from releases.
  2. Prepare a config.yaml like config.yaml.
  3. Run thu-learn-downloader password="***" and wait for the sync to finish.