{"id":23004041,"url":"https://github.com/hantang/smartedu-dl-go","last_synced_at":"2025-04-02T14:25:44.843Z","repository":{"id":267789191,"uuid":"902352826","full_name":"hantang/smartedu-dl-go","owner":"hantang","description":"国家中小学智慧教育平台资源下载工具","archived":false,"fork":false,"pushed_at":"2025-03-16T04:35:07.000Z","size":773,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T05:24:03.060Z","etag":null,"topics":["downloader","pdf","smartedu","textbook"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hantang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-12T12:00:03.000Z","updated_at":"2025-03-16T04:35:10.000Z","dependencies_parsed_at":"2024-12-12T13:29:23.669Z","dependency_job_id":"629cfefb-d7ad-49d3-87ec-aafd2e1b644b","html_url":"https://github.com/hantang/smartedu-dl-go","commit_stats":null,"previous_names":["hantang/smartedu-dl-go"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantang%2Fsmartedu-dl-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantang%2Fsmartedu-dl-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantang%2Fsmartedu-dl-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantang%2Fsmartedu-dl-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hantang","download_url":"https://codeload.github.com/hantang/smartedu-dl-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246830403,"owners_count":20840811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["downloader","pdf","smartedu","textbook"],"created_at":"2024-12-15T07:17:16.668Z","updated_at":"2025-04-02T14:25:44.832Z","avatar_url":"https://github.com/hantang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smartedu-dl (`go`)\n\n![build](https://github.com/hantang/smartedu-dl-go/actions/workflows/release.yml/badge.svg)\n![CI](https://github.com/hantang/smartedu-dl-go/actions/workflows/ci.yml/badge.svg)\n![Tag](https://img.shields.io/github/v/tag/hantang/smartedu-dl-go)\n\n\u003e 智慧教育平台资源下载工具（`go`实现版，基于 fyne 框架 GUI 版本）\n\n## 📝 功能说明\n\n主要支持`smartedu.cn`教材、课件（PDF 格式）下载存储。\n\n### 🖥️ 截图\n\n\u003e 仅供参考，不一定是最新版界面。\n\n| 平台    | 页面     | 暗黑                       | 明亮                        |\n| ------- | -------- | -------------------------- | --------------------------- |\n| macos   | 输入链接 | ![](images/mac-dark2a.png) | ![](images/mac-light2a.png) |\n|         | 教材列表 | ![](images/mac-dark2b.png) | ![](images/mac-light2b.png) |\n|         |          |                            |\n| windows |          | ![](images/win-dark.png)   | ![](images/win-light.png)   |\n|         |          |                            |\n| linux   |          | ![](images/linux-dark.png) | ![](images/linux-light.png) |\n\n### ⚡️ 更新\n\n- [x] 链接输入列表下载(`v0.1.x`)\n- [x] 教材查询列表下载(`v0.2.x`)\n    - 支持登录信息配置（devtools/network选择pdf文件找到Request Headers中`x-nd-auth`参数）\n    - 增加日志统计（结果保存在`log-smartedudl.txt`）\n    - 增加备用解析链接\n    - 已知问题：\n      - 部分音频下载可能失败（包括已配置登录信息）；\n      - 非登录状态部分资源可能下载失败或下载的是旧版教材；\n      - 新增备用解析，可能导致下载同一个下载多个对应PDF（可能不完全相同）。\n\n\n## 🚨 备注：配置登录信息\n\n如果下载教材不是最新版，需要配置登录信息，找到 **X-ND-AUTH** 字段。\n\n大致步骤：\n1. 浏览器打开：\u003chttps://basic.smartedu.cn/tchMaterial\u003e \n2. 点击其中一本教材\n3. 弹出新的页面中选择登录\n4. 登录后重新打开教材页面，鼠标右键菜单中选择 **检查**（Inspect）/或者 `F12` 打开开发者工具 （DevTools）.\n5. 之后步骤如下图，找到 **X-ND-AUTH** 字段\n    ![](./images/steps.png)\n6. 图形界面在 **登录信息** 框中填入。\n\n## 👷 开发\n\n```shell\n# go语言开发环境\n\ngo mod tidy\ngo run main\n```\n\n## 🌐 相关项目\n\n- 旧版（python）\n  - [hantang/smartedu-dl](https://github.com/hantang/smartedu-dl)\n\n- 类似项目\n  - [happycola233/tchMaterial-parser](https://github.com/happycola233/tchMaterial-parser)\n  - [52beijixing/smartedu-download](https://github.com/52beijixing/smartedu-download)\n  - 智慧教育平台电子教材下载器 \u003chttps://www.52pojie.cn/thread-1891126-1-1.html\u003e\n  - [cjhdevact/FlyEduDownloader](https://github.com/cjhdevact/FlyEduDownloader)\n\n- 图标：修改自\u003chttps://www.smartedu.cn/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantang%2Fsmartedu-dl-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhantang%2Fsmartedu-dl-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantang%2Fsmartedu-dl-go/lists"}