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]--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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4cf8d42280b6bf21897eb73b36e557b7eb9ba99a62cf7ae0a8c06aaa227715 |
|
MD5 | 31f8421770dafe2bcfb3fa53065ce1d0 |
|
BLAKE2b-256 | b8c13919917df4c81a60c968edc291c7f17ec1386e26697e14a0068f4d6b9884 |
Close
Hashes for thu_learn_downloader-0.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69770d0be30615b55816854ff482b36411ea3b9101203ed78afb9c15db591439 |
|
MD5 | 0b92cfbc9739a0da26a885821d90324f |
|
BLAKE2b-256 | c684b3bff76bd2c6305d85afe35f46e9bf6b8049cbdc67edef44d6e699af2a35 |