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.0.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for thu_learn_downloader-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78d8b6abf2c80b207bf2e98cce5c42039116f99ce25b17e4dbaf72c4cab9aef5 |
|
MD5 | 51c0c1074e861c638b50c9ca9e9db307 |
|
BLAKE2b-256 | 02466c4abd5e7604ea1d52fa7b944f8e65ef09aec0fc5fd51830309938383167 |
Close
Hashes for thu_learn_downloader-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df1e123ef61892a223fb0a5e8fd1fb278a99f689513d04a5acab2fda69e3108a |
|
MD5 | f5fa9528dc60256e7dc6ee3127075366 |
|
BLAKE2b-256 | 4d17f0821c306d5f9f4d51ca5c3c028619145817d868e1613d9294419e5128de |