Download everything from Web Learning of Tsinghua University
Project description
THU Web Learning Downloader
Download everything from Web Learning of Tsinghua University
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
Usage
Usage:
$ tld [OPTIONS]
Options:
-u, --username TEXT
-p, --password TEXT
--prefix DIRECTORY
: [default: $HOME/thu-learn]-s, --semester TEXT
: [default: 2023-2024-1]-c, --course TEXT
--document / --no-document
: [default: document]--homework / --no-homework
: [default: homework]-j, --jobs INTEGER
: [default: 8]-l, --language [en|zh]
: [default: en]--log-level [NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL]
: [env var: LOG_LEVEL; default: INFO]--help
: Show this message and exit.
Features
- fast concurrent download
- 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)
Installation
- download pre-built binary form GitHub Releases
pip install thu-learn-downloader
pipx install thu-learn-downloader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for thu_learn_downloader-0.1.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc46921ea1d17e59344d9f4f249919f8fe0926a4dd0de083a8af2af3698183be |
|
MD5 | 56d9c9e04596b9ee16cd1c86d932b6f7 |
|
BLAKE2b-256 | 07429eedc05a4fd24d3bc68f70270a20d1b14aa84a571ea4ce6a596b4a032141 |
Close
Hashes for thu_learn_downloader-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd47d4acf524199f266e7a6c51886d8670ea9c8a4fd8ced4e89dac8d3e8132b1 |
|
MD5 | e3690e7f5c855c7ec6a3a389cfbb7dba |
|
BLAKE2b-256 | 238dd125358c59e1f8266f17d5a0e69e0d1a009cfef1ca93db24e14e589beb52 |