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.2.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for thu_learn_downloader-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d46448d332b514e316d2355850bd9ca5ecd88bdcf682f759dc7629fae75a211d |
|
MD5 | 91ee1df0785e6fc82e4137007057abaf |
|
BLAKE2b-256 | 3c2dbd528b6b98f57d01999608820a9bbb4d00370a49745163a39fa3fe273d72 |
Close
Hashes for thu_learn_downloader-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea66cc7bd51c2a6e4f3f495d58ea9571a1a1890024aeab826016198424a2710 |
|
MD5 | 0586b536fed9e735815744eba11c4d39 |
|
BLAKE2b-256 | 8da562b6a22df7be2ccbf37e46f25f5767a5e9af0666f08f7b7a15eb01213aaf |