excel2pdf
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
将网页 URL 转换为电子书。当用户提到网页转电子书、URL 转 ebook、网页转 EPUB、离线阅读网页、pospider 时使用。
$ npx -y skills add coderwanfeng/python-office --skill url2ebook --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/url2ebookContext preview
The summary Claude sees to decide when to auto-load this skill.
将网页 URL 转换为电子书。当用户提到网页转电子书、URL 转 ebook、网页转 EPUB、离线阅读网页、pospider 时使用。
name: url2ebook description: 将网页 URL 转换为电子书。当用户提到网页转电子书、URL 转 ebook、网页转 EPUB、离线阅读网页、pospider 时使用。
> 将指定网页转换为电子书
抓取网页主要内容,生成可离线阅读的电子书。依赖可选包 `pospider`。
`office/skills/web/url2ebook/`
from skills.web import url2ebook
url2ebook(
url='https://www.python-office.com',
tile='Python-Office自动化办公指南'
)| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `url` | str | 是 | - | 要转换的网页地址 | | `tile` | str | 是 | - | 电子书标题(参数名是 `tile`,不是 `title`) |
`None`(成功后生成电子书文件)
from skills.web import url2ebook url2ebook(url='https://www.python-office.com', tile='Python-Office自动化办公指南')
`office.api.web.url2ebook`
`examples/pospider/网页转电子书.py`
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
在 Excel 文件中搜索指定关键词并返回文件、行号、详情。当用户提到搜索 Excel、Excel 查找、Excel 搜索内容时使用。
将多个 Excel 文件合并到一个 Excel 的不同 sheet 中。当用户提到合并 Excel、合并多个表格、多个 Excel 合并时使用。
将同一个 Excel 文件的多个 sheet 拆分为独立文件。当用户提到拆分 sheet、Excel 按表拆分、拆 sheet 时使用。