Skip to content
Back to skills

Fetch Gnews

ASecurity

通过 GNews API 搜索新闻。与 NewsAPI 互补,支持更多语言和地区筛选。Free tier 100 requests/天,10 articles/request。需要 GNEWS_API_KEY 环境变量。

  • 98 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
data-aipythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add zhiyuzi/Signex --skill fetch-gnews --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch Gnews?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch Gnews
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zhiyuzi-fetch-gnews/badge)](https://www.skillsdirectory.com/skills/zhiyuzi-fetch-gnews)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-gnews
description: 通过 GNews API 搜索新闻。与 NewsAPI 互补,支持更多语言和地区筛选。Free tier 100 requests/天,10 articles/request。需要 GNEWS_API_KEY 环境变量。
---

# fetch-gnews

从 stdin 读取 JSON 参数,搜索新闻:

```bash
echo '{"queries": ["AI tools"], "max_results": 10, "language": "en"}' | uv run python .claude/skills/fetch-gnews/scripts/search.py
```

参数:
- `queries`: 搜索查询词数组
- `max_results`: 每个查询返回结果数(默认 10,最大 10)
- `language`: 语言代码(默认 "en")

需要环境变量 `GNEWS_API_KEY`(从项目 .env 文件加载)。

脚本输出 JSON 到 stdout,包含去重后的新闻结果。按 URL 去重。

Files in this skill

  • SKILL.md740 B
  • scripts/search.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.