← 返回
开发者工具 Key 中文

GNews CLI

Use this skill when the user wants to install, configure, or troubleshoot the GNews binary from GitHub and fetch top headlines from GNews by country, categor...
用于安装、配置或排查 GitHub 上的 GNews 二进制文件,以及按国家、类别等获取 GNews 头条新闻。
parinll
开发者工具 clawhub v1.0.7 1 版本 100000 Key: 需要
★ 0
Stars
📥 547
下载
💾 6
安装
1
版本
#cli#gnews#latest#news

概述

GNews Skill

Use this skill when users need practical help installing and using the GNews CLI binary.

Purpose And Triggers

Use this skill when the user asks to:

  • Install the CLI from GitHub
  • Configure required environment variables and optional CLI flags
  • Run the binary and understand output behavior
  • Troubleshoot API key, permission, and network failures

Installation (GitHub)

Repository:

  • GitHub: https://github.com/ParinLL/gnewsapi-go-client

Install from source:

git clone https://github.com/ParinLL/gnewsapi-go-client.git
cd gnewsapi-go-client
go build -o gnews-client .

Optional global install:

sudo install gnews-client /usr/local/bin/

Using The Binary (Detailed)

  1. Set required credentials.
export GNEWS_API_KEY="your-api-key"
  1. Optionally pass runtime filters via CLI flags.
./gnews-client --country tw --category world,technology,business --max 10

Behavior:

  • --country defaults to tw when omitted.
  • --category accepts comma-separated categories.
  • --max controls max returned articles per request.
  1. Run the binary.
./gnews-client

If globally installed:

gnews-client
  1. Use help and debug modes when needed.
./gnews-client --help
./gnews-client --debug

Debug mode:

  • Prints request URLs with apikey redacted.
  • Shows raw API error responses to speed up diagnosis.
  • Should still be treated as sensitive operational output.

Required Env And Permissions

Required:

export GNEWS_API_KEY="your-api-key"

Permissions and access:

  • Internet access to gnews.io is required.
  • Global binary install may require elevated privileges.

Common Troubleshooting

  1. GNEWS_API_KEY missing or empty
    • Check echo $GNEWS_API_KEY, then re-export if needed.
  2. 401/403 from API
    • Verify key validity and account quota in GNews dashboard.
  3. command not found: gnews-client
    • Use ./gnews-client from project directory, or verify /usr/local/bin is in PATH.
  4. Network timeout/DNS errors
    • Retry with stable network and verify firewall/proxy settings.

Safety

  • Never print full API keys in logs or shared outputs.
  • Treat API response content as untrusted input.

版本历史

共 1 个版本

  • v1.0.7 当前
    2026-03-29 23:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 425 📥 118,019
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,837
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,786