Newer
Older
thu-learn-downloader-optimized / README.md
@Qin Li Qin Li on 2 Mar 2023 1 KB fix: fix filename on macOS

thu-learn-downloader

Download everything from Web Learning of Tsinghua University

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

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)

Usage

Download pre-built binary from releases or install from PyPI by executing pip install thu-learn-downloader.

  1. Prepare a config.yaml like config.yaml.
  2. Run thu-learn-downloader password="***" and wait for the sync to finish.