generate_news_article
Generate individual Markdown articles from SerpAPI Google search results with images
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- generate_news_article
- homepage
- null
- metadata
- { "clawdbot": { "emoji": "📰", "requires": [ "serpapi" ] } }
- description
- Generate individual Markdown articles from SerpAPI Google search results with images
03 SKILL.md 正文
Generate News Article
自动从 SerpAPI Google 搜索结果生成多篇独立的 Markdown 文章。
功能
- 接收搜索关键词(默认:AI助手)
- 调用 SerpAPI Google 搜索(默认获取 5 条结果)
- 为每条结果生成独立的 Markdown 文件
- 自动下载缩略图到 assets 目录
- 以时间目录结构保存文章
使用
# 使用默认关键词 "AI助手"
generate.sh
# 指定关键词
generate.sh "AI大模型"
# 指定关键词和结果数量
generate.sh "ChatGPT" 10
输出结构
生成的文章保存在 agent 根目录的 output 文件夹中:
/Users/lihaijian/.openclaw/workspace-wechat-publisher/output/
└── 2026-02-22/
├── 文章标题1.md
├── 文章标题2.md
├── 文章标题3.md
├── 文章标题4.md
├── 文章标题5.md
└── assets/
├── image1.jpg
├── image2.jpg
└── ...
文章格式
每篇 Markdown 文件包含:
---
title: 文章标题
cover: ./assets/image.jpg
---
# 文章标题
摘要内容...
[原文链接](https://example.com/article)
特性
- ✅ 每条搜索结果生成独立文件
- ✅ 文件名使用搜索标题(自动清理特殊字符)
- ✅ 自动下载缩略图
- ✅ 支持指定文章数量
- ✅ 按日期归档
依赖
- SerpAPI skill(必须已安装)
- SERPAPI_API_KEY 环境变量
- Python 3(用于 JSON 解析和图片下载)
注意事项
- 如果搜索结果没有缩略图,cover 字段会留空
- 文件名会自动清理特殊字符
- 文章按搜索结果的序号生成
- 搜索使用 Google 搜索引擎(不是 Google News)
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.