用法:
- 使用命令行进入
script
文件夹。 - 执行命令
python main.py ...
。 - PDF 文件会自动保存到
pdf
文件夹内。
可用的指令如下:
python main.py id xxx yyy ...
:下载若干个 id 对应的教材。python main.py url https://basic.smartedu.cn/tchMaterial?defaultTag=...
:下载一个页面对应的所有教材。
本项目参考了 https://github.com/happycola233/tchMaterial-parser
的部分逻辑。