THU Web Learning Downloader
[!WARNING] username + password 登陆方式已失效, 致使本项目目前不可用 #223. PR Welcome!
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
mtimeof downloaded files according to timestamp of remote file - auto skip download when local file is newer
- dump homework details into
README.mdin each homework folder - pretty markdown files powered by prettier (require
prettierinstalled)
Installation
- download pre-built binary form GitHub Releases
pip install thu-learn-downloaderpipx install thu-learn-downloader
Metadata
Release files for thu-learn-downloader 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thu_learn_downloader-0.4.1.tar.gz | 16.9 kB | With provenance | Details for thu_learn_downloader-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thu_learn_downloader-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for thu_learn_downloader-0.4.1-py3-none-any.whl |
Total release size: 39.9 kB
Release files / thu_learn_downloader-0.4.1.tar.gz
| Download URL | thu_learn_downloader-0.4.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e06009dc3e473fae0b702dcc4d3a3bd560af27e7933789c9b83a0b68823f724
|
|
BLAKE2b-256 checksum How to use checksums |
86186a7f176078cd80899f7959875abcc409623eb511364da5b02b46b066cc00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.
Transparency logRelease files / thu_learn_downloader-0.4.1-py3-none-any.whl
| Download URL | thu_learn_downloader-0.4.1-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f91d0d63fa1df054c27bd797f21475bf8d8f5d3b974b7ba2f9d214fd9e131f6a
|
|
BLAKE2b-256 checksum How to use checksums |
a4777dce323f496988d9a516812a07780567c47bdc0503b1aaf4132a01a5bb49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.
Transparency logSecurity for thu-learn-downloader 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for thu_learn_downloader-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.