https://github.com/hantang/smartedu-dl-go
国家中小学智慧教育平台资源下载工具
https://github.com/hantang/smartedu-dl-go
downloader pdf smartedu textbook
Last synced: 6 months ago
JSON representation
国家中小学智慧教育平台资源下载工具
- Host: GitHub
- URL: https://github.com/hantang/smartedu-dl-go
- Owner: hantang
- License: mit
- Created: 2024-12-12T12:00:03.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T04:35:07.000Z (7 months ago)
- Last Synced: 2025-03-16T05:24:03.060Z (7 months ago)
- Topics: downloader, pdf, smartedu, textbook
- Language: Go
- Homepage:
- Size: 755 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smartedu-dl (`go`)


> 智慧教育平台资源下载工具(`go`实现版,基于 fyne 框架 GUI 版本)
## 📝 功能说明
主要支持`smartedu.cn`教材、课件(PDF 格式)下载存储。
### 🖥️ 截图
> 仅供参考,不一定是最新版界面。
| 平台 | 页面 | 暗黑 | 明亮 |
| ------- | -------- | -------------------------- | --------------------------- |
| macos | 输入链接 |  |  |
| | 教材列表 |  |  |
| | | |
| windows | |  |  |
| | | |
| linux | |  |  |### ⚡️ 更新
- [x] 链接输入列表下载(`v0.1.x`)
- [x] 教材查询列表下载(`v0.2.x`)
- 支持登录信息配置(devtools/network选择pdf文件找到Request Headers中`x-nd-auth`参数)
- 增加日志统计(结果保存在`log-smartedudl.txt`)
- 增加备用解析链接
- 已知问题:
- 部分音频下载可能失败(包括已配置登录信息);
- 非登录状态部分资源可能下载失败或下载的是旧版教材;
- 新增备用解析,可能导致下载同一个下载多个对应PDF(可能不完全相同)。## 🚨 备注:配置登录信息
如果下载教材不是最新版,需要配置登录信息,找到 **X-ND-AUTH** 字段。
大致步骤:
1. 浏览器打开:
2. 点击其中一本教材
3. 弹出新的页面中选择登录
4. 登录后重新打开教材页面,鼠标右键菜单中选择 **检查**(Inspect)/或者 `F12` 打开开发者工具 (DevTools).
5. 之后步骤如下图,找到 **X-ND-AUTH** 字段

6. 图形界面在 **登录信息** 框中填入。## 👷 开发
```shell
# go语言开发环境go mod tidy
go run main
```## 🌐 相关项目
- 旧版(python)
- [hantang/smartedu-dl](https://github.com/hantang/smartedu-dl)- 类似项目
- [happycola233/tchMaterial-parser](https://github.com/happycola233/tchMaterial-parser)
- [52beijixing/smartedu-download](https://github.com/52beijixing/smartedu-download)
- 智慧教育平台电子教材下载器
- [cjhdevact/FlyEduDownloader](https://github.com/cjhdevact/FlyEduDownloader)- 图标:修改自