Download everything from Web Learning of Tsinghua University
Project description
thu-learn-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
: [default: liqin20]-p, --password TEXT
-s, --semester TEXT
: [default: 2022-2023-2]-c, --course TEXT
--prefix PATH
: [default: /home/liblaf/Desktop/thu-learn]-s, --size-limit INTEGER
: [default: 9223372036854775807]--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d6dd06e05a8fcb255cfeef7dae0251949ba996e9f8378fcb21260ce412870a |
|
MD5 | 4fd4353802f21096a962e6546178b274 |
|
BLAKE2b-256 | 2446f752a7ab614e3a498df949818b0b48c99fbea27d65e8882067891e2a8bfd |
Close
Hashes for thu_learn_downloader-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683a3d16aaf360b63e09a116b424b95d529d5c03db14452dbcc3f75571ff6779 |
|
MD5 | 766abee0562effef60995abc6c6cc336 |
|
BLAKE2b-256 | 6487d565cf22df5b809eba6f9c339bd620577ce9437fc1efc498e3eca79f5802 |