X 内容采集技巧:无 API Key 抓单条推文并落地到研究流
场景:需要快速收集 X 线索但没有官方 API 权限。做法:用 x-tweet-fetcher 抓单条推文正文+统计,再接入 OpenClaw 的摘要/归档流程。
GITHUBDiscovered 2026-02-18Author @ythx-101
Prerequisites
- Python 3.7+ is available on host running the fetch script.
- Target tweet is public (not deleted/protected/private).
Steps
- Run fetch_tweet.py with target status URL to obtain normalized JSON output.
- Switch to --text-only mode when you only need digest-ready content.
- Persist JSON/text to your OpenClaw workspace and tag with source, author, and date metadata.
- Feed saved content into your summarization or RAG ingestion pipeline.
- When replies are required, mark as out-of-scope and switch to browser automation path(需验证).
Commands
python3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456"python3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456" --text-onlypython3 scripts/fetch_tweet.py --url "https://x.com/user/status/123456" --prettyVerify
Output includes tweet full text and engagement stats; repeated runs on same URL are stable and parseable.
Caveats
- Tool depends on FxTwitter availability; service outage directly affects fetch success.
- Reply threads are intentionally unsupported in zero-dependency mode.
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗