An open API service indexing awesome lists of open source software.

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

国家中小学智慧教育平台资源下载工具

Awesome Lists containing this project

README

          

# smartedu-dl (`go`)

![build](https://github.com/hantang/smartedu-dl-go/actions/workflows/release.yml/badge.svg)
![CI](https://github.com/hantang/smartedu-dl-go/actions/workflows/ci.yml/badge.svg)
![Tag](https://img.shields.io/github/v/tag/hantang/smartedu-dl-go)

> 智慧教育平台资源下载工具(`go`实现版,基于 fyne 框架 GUI 版本)

## 📝 功能说明

主要支持`smartedu.cn`教材、课件(PDF 格式)下载存储。

### 🖥️ 截图

> 仅供参考,不一定是最新版界面。

| 平台 | 页面 | 暗黑 | 明亮 |
| ------- | -------- | -------------------------- | --------------------------- |
| macos | 输入链接 | ![](images/mac-dark2a.png) | ![](images/mac-light2a.png) |
| | 教材列表 | ![](images/mac-dark2b.png) | ![](images/mac-light2b.png) |
| | | |
| windows | | ![](images/win-dark.png) | ![](images/win-light.png) |
| | | |
| linux | | ![](images/linux-dark.png) | ![](images/linux-light.png) |

### ⚡️ 更新

- [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** 字段
![](./images/steps.png)
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)

- 图标:修改自