gesp-download
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "gesp-download" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3daa902bad0f941d7dfc7f1b07eb763d70fc1632e06c8b2299b1e2483e3aae7e. Verify the upstream source and version against https://skillhub.cn/skills/user_b89a4d0a/gesp-download before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A tool to download past CCF GESP programming certification exam PDFs. Retrieve papers by year, month, language (C++/Python/graphical Scratch) and level (1–8), automatically normalize paper filenames, and optionally convert GESP exam PDFs to Markdown. Data comes from the official exam analysis page gesp.ccf.org.cn/101/1010/. Not for non‑GESP exam materials.
Introduction source: third_party · user_b89a4d0a · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: gesp-download
version: 1.0.0
description: "下载 CCF GESP 编程能力认证历年真题 PDF,文件名自动规范化,可选转 Markdown。当用户要『下载 GESP 真题/试卷/历年真题』、按年份·月份·语言(C++/Python/图形化Scratch)·等级(1-8级)获取试题、规范命名试卷文件,或把 GESP 真题 PDF 转成 md/markdown 时使用。数据来自官方真题解析页 gesp.ccf.org.cn/101/1010/。不负责非 GESP 的其它考试资料。"
metadata:
requires:
bins: ["python3"]
optional:
pip: ["pymupdf", "pymupdf4llm"]GESP 真题下载
从 CCF GESP 官方「真题解析」页面(https://gesp.ccf.org.cn/101/1010/)下载历年真题
PDF,自动用规范文件名保存,并可选转成 Markdown。所有逻辑都在本目录的脚本里:
python3 .claude/skills/gesp-download/gesp_download.py [选项]
脚本会实时爬取官网列表页,因此新公布的场次(如下一季考试)无需改代码即可自动出现。
真题结构(用于理解用户意图)
- 考试时间:每年 3 / 6 / 9 / 12 月各一次。
- 语言 × 等级:
图形化(Scratch):1–4 级C++:1–8 级Python:1–6 级(部分年份到 7 级;早年等级更少)
- 越早的年份开放的语言/等级越少(属正常,不是缺漏)。
工作流程
-
先判断范围。把用户的自然语言映射到筛选条件:
用户说的 命令 “2026年3月的 C++ 五级真题” --year 2026 --month 3 --lang cpp --grade 5“2025年12月的真题”(整场) --year 2025 --month 12“2025年的全部真题” --year 2025“所有 Python 三级真题” --lang python --grade 3“全部历年真题”(约 218 份) --all笼统的“下载 GESP 真题” 先 --list,把可选场次给用户看,请其确认范围 -
范围不明确时先
--list,不要默认下载全部。无任何筛选条件且未加--all时, 脚本本身也会拒绝下载并打印清单——这是有意的防呆。 -
执行下载。加
--md可在下载后顺带转 Markdown。 -
回报结果:说明下载了几份、存到哪个目录。
选项速查
--year YYYY/--month {3,6,9,12}/--date 2026-03--lang cpp|python|scratch|all(scratch等同图形化)--grade 1..8 | all--all下载全部场次--list只列出可下载内容,不下载--md下载后转 Markdown;--md-only仅把已下载的 PDF 转 MD--outdir DIR输出目录(默认当前目录下的GESP真题/)--force已存在也重新下载/覆盖(默认跳过已存在文件,可重复运行)
筛选条件是「与」关系,可任意组合。
命名与目录规范
GESP真题/
2026年03月/
GESP 2026年03月 C++ 5级 试题.pdf
GESP 2026年03月 C++ 5级 试题.md # 加 --md 时
GESP 2026年03月 图形化 1级 试题.pdf
2025年12月/
...
- 文件名格式:
GESP {年}年{月:02d}月 {语言} {等级}级 试题,语言规范为C++/Python/图形化。 - 月份补零(
03月),按目录天然可排序。 - 官网 PDF 的真实链接是无意义数字(如
1734124574343200.pdf),脚本从链接的title属性还原出可读名称——这正是“自动规范命名”的来源。
转 Markdown 说明
- 优先用
pymupdf4llm(排版/表格更好),缺失则回退到PyMuPDF(fitz)纯文本提取。 - 想要更高质量,可先安装:
pip install pymupdf4llm(脚本会自动启用)。 - 图形化(Scratch) 卷子以图片为主,文本提取有限,Markdown 可能不完整——脚本会在 这类文件顶部加提示,请以 PDF 为准。这是 PDF 本身的限制。
注意
- 下载无需登录,但请适度——脚本已在请求间加了小延迟。
- 站点极少数试卷用
cms/api/news/downloadFile?id=而非.pdf链接,脚本两种都已支持。 - 若官网改版导致解析为 0,多半是 HTML 结构变化,需要更新脚本里的正则。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 CCF GESP 历年真题 PDF 下载,支持多维度筛选(年/月/语言/等级)
- 自动规范命名文件,解决用户手动整理痛点
- 可选转 Markdown,增强文档可读性与二次处理便利性
Highlights
- 触发词覆盖全面,涵盖下载、筛选、命名、格式转换等核心场景
- 边界清晰,明确限定为 GESP 真题,不混淆其他考试资料
Highlights
- 文档结构完整,含工作流程、选项说明、命名规范、注意事项
- 提供端到端调用示例,frontmatter 信息齐全
Highlights
- 依赖明确(python3 + 可选 pip 包),来源可靠
- 内置防呆机制(--list 预览、拒绝无筛选下载)
- 支持跳过已存在文件,避免重复下载
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 85
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gesp.ccf.org.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.