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
thu_learn_downloader-0.3.0.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for thu_learn_downloader-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25a1fc47c6def142fe6bb27582fcf7bc95bbbc652c501a9bbe6153bef5a59b99 |
|
MD5 | fc3fc8b04068e2d36ffdaa9463fb6b18 |
|
BLAKE2b-256 | 5643262b2b4d9536368149f75fb894d592d5402a3fc73d6e1deb10b627f0f735 |
Close
Hashes for thu_learn_downloader-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b09121156e3f0e4e5ce0555c993630dedb7606663984bf566558d2b5792deb |
|
MD5 | 5c236137983347819f4213a2b75f72c4 |
|
BLAKE2b-256 | 903c789daa511fbb78c7a508b851241323334be347e93a4d62f14a8e05f30b9d |