Skip to content
Back to skills

Fetch X

ASecurity

通过 X/Twitter API v2 搜索最近推文。用于获取实时社交信号、产品发布动态。Free tier 限制 1500 reads/月,仅搜索最近 7 天。需要 X_BEARER_TOKEN 环境变量。注意:数据不得用于模型训练。

  • 98 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
data-aipythonbashapi

Works with

  • cursor
  • 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-x --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch X?

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

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

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-x
description: 通过 X/Twitter API v2 搜索最近推文。用于获取实时社交信号、产品发布动态。Free tier 限制 1500 reads/月,仅搜索最近 7 天。需要 X_BEARER_TOKEN 环境变量。注意:数据不得用于模型训练。
---

# fetch-x

从 stdin 读取 JSON 参数,搜索 X/Twitter 最近推文:

```bash
echo '{"queries": ["AI IDE", "Cursor update"], "max_results": 10, "min_likes": 5}' | uv run python .claude/skills/fetch-x/scripts/search.py
```

参数:
- `queries`: 搜索查询词数组
- `max_results`: 每个查询返回结果数(默认 10,最大 10)
- `min_likes`: 最低点赞数过滤(默认 0,建议 3-10,由 AI 根据话题热度动态决定)
- `min_retweets`: 最低转发数过滤(默认 0)

费用提示:按量计费,约 $0.005/条推文。建议每次 1-2 个 query,max_results 保持 10,配合 min_likes 过滤低质量内容。

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

脚本输出 JSON 到 stdout,包含去重后的推文。按 tweet id 去重。

合规提示:数据仅用于个人情报分析,不得用于模型训练。

Files in this skill

  • SKILL.md1.1 KB
  • scripts/search.py4.2 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.