Skip to main content

Download everything from Web Learning of Tsinghua University

Project description

THU Web Learning Downloader

[!WARNING] username + password 登陆方式已失效, 致使本项目目前不可用 #223. PR Welcome!

Download everything from Web Learning of Tsinghua University

GitHub Workflow Status (with event) PyPI - Python Version PyPI - Version

Demo

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


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.4.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thu_learn_downloader-0.4.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file thu_learn_downloader-0.4.1.tar.gz.

File metadata

  • Download URL: thu_learn_downloader-0.4.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for thu_learn_downloader-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6e06009dc3e473fae0b702dcc4d3a3bd560af27e7933789c9b83a0b68823f724
MD5 0ec0ff4b523796b57b36c264829655ee
BLAKE2b-256 86186a7f176078cd80899f7959875abcc409623eb511364da5b02b46b066cc00

See more details on using hashes here.

Provenance

The following attestation bundles were made for thu_learn_downloader-0.4.1.tar.gz:

Publisher: release.yaml on liblaf/thu-learn-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thu_learn_downloader-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thu_learn_downloader-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f91d0d63fa1df054c27bd797f21475bf8d8f5d3b974b7ba2f9d214fd9e131f6a
MD5 a51b5def99d96a1ee0b8ed6bddb13e1b
BLAKE2b-256 a4777dce323f496988d9a516812a07780567c47bdc0503b1aaf4132a01a5bb49

See more details on using hashes here.

Provenance

The following attestation bundles were made for thu_learn_downloader-0.4.1-py3-none-any.whl:

Publisher: release.yaml on liblaf/thu-learn-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page