REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Fetch X/Twitter tweets, replies, timelines, search, Lists and X Articles without login or API keys. Python CLI + library for AI agents: FxTwitter / Nitter / browser backends with auto fallback, unified JSON, optional SQLite archive. 免登录免 API 抓取推特推文。
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/skills/ythx-101-x-tweet-fetcher)MCP servers that connect the AI to services for the same work
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
MCP server for terminal commands, file operations, and process management
Same kind of work, ordered like the Skills list
| This one x-tweet-fetcher | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| Maker | ythx-101 | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skills | 1 | 1 | 1 | 1 | 1 |
| GitHub stars | 1,011 | 468,733 | 234,332 | 150,287 | 144,566 |
| Last code change | Nov 13, 2026 | Nov 19, 2026 | Apr 20, 2026 | Nov 18, 2026 | Nov 18, 2026 |
| License | MIT | MIT | – | Apache-2.0 | MIT |
1 skills (instruction sets) by ythx-101 that an AI reads and follows · not an MCP server
MCP = the hands
Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.
Skill = the manual
A text file that teaches the AI how to do a task. It connects to nothing.
Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.
Claude Code
From the maker’s README and the folders in the repo
GitHub account ythx-101 (person), 1 years old
★ 1,011 stars · code last changed Nov 13, 2026
31 scripts that can run on a computer: scripts/fetch_tweet.py, src/xtf/__init__.py, src/xtf/backends/__init__.py, src/xtf/backends/_camofox_driver.py and 27 more
Scripts that go online: src/xtf/http.py
No hooks or writes to machine settings found
Checked automatically from the repo files at commit e1a668d (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
First: which AI do you use?
Pick your app and this page shows only how to install it there
Uploading to claude.ai would fail: the description is over 200 characters (525). Use "Let the AI install it" instead
Copy this sentence and paste it into a Claude Code chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Restart Claude Code, then type /x-tweet-fetcher or ask for a matching task and Claude picks it up
Checked against official docs Nov 12, 2026 · Source: code.claude.com
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher.git /tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d/.' ~/.claude/skills/x-tweet-fetcherThe ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills
Open Codex in the ChatGPT desktop app and paste this sentence into the chat
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Put the x-tweet-fetcher folder at ~/.agents/skills/x-tweet-fetcher
~ is your home folder ($HOME)
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher.git /tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d/.' ~/.agents/skills/x-tweet-fetcherChecked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
Skills you install yourself do not work here; only skills that come with a plugin from the directory
To use this skill with ChatGPT, use the ChatGPT desktop app as above
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher.git /tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d/.' ~/.agents/skills/x-tweet-fetcherCopy this sentence and paste it into a Cursor chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
In Cursor’s Agent chat, type / and pick x-tweet-fetcher
Checked against official docs Nov 12, 2026 · Source: cursor.com
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher.git /tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-ythx-101-x-tweet-fetcher-e1a668d/.' ~/.cursor/skills/x-tweet-fetcherFor other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com
Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.
Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026
✓ Commands checked Nov 19, 2026
The text below comes from the maker’s repo, not from PopNx MCP
3,837 characters · Open the full file on GitHub
---
name: x-tweet-fetcher
description: >
Fetch tweets, replies, timelines, search results, X Lists, and X Articles
from X/Twitter without login or API keys. Single tweets: zero dependencies
(FxTwitter). Timelines/search/replies: a Nitter instance (XTF_NITTER).
Lists: Nitter first, browser fallback. Articles: a browser driver
(Camofox or Playwright). Unified JSON
schema across all backends; machine-readable error_code for agent branching.
Field reports and agent-use questions: Agent Waystation #22 Teahouse:
https://github.com/ythx-101/openclaw-qa/discussions/22
---
# X Tweet Fetcher
Fetch tweets from X/Twitter without authentication. For agent-use stories, failures, and field reports, start from **[#22 Teahouse / 茶座](https://github.com/ythx-101/openclaw-qa/discussions/22)**.
## Feature Overview
| Feature | Command | Dependencies |
|---------|---------|-------------|
| Single tweet | `xtf --url <tweet_url>` | None (zero deps) |
| Reply threads | `xtf --url <tweet_url> --replies` | Nitter or browser |
| User timeline | `xtf --user <username> --limit 50` | Nitter or browser |
| Search | `xtf --search "<query>"` | Nitter |
| User profile | `xtf --user-info <username>` | None (zero deps) |
| X List | `xtf --list <list_url_or_id>` | Nitter, browser fallback (Camofox/Playwright) |
| X Article | `xtf --article <url_or_id>` | Browser (Camofox/Playwright) |
| Mentions monitor | `xtf --monitor @<username>` | Nitter or browser |
`python3 scripts/fetch_tweet.py` accepts the same flags (v1-compatible entry point).
## Basic Usage (Zero Dependencies)
```bash
# JSON output (default)
xtf --url https://x.com/user/status/1234567890
# Human-readable
xtf --url https://x.com/user/status/1234567890 --text-only
# Output covers: text, author, stats (likes/retweets/views), media URLs,
# quoted tweets, and full article text for tweet-embedded articles.
```
## Timeline / Search / Replies (Nitter)
```bash
export XTF_NITTER=http://127.0.0.1:8788 # your instance; comma-separate for failover
xtf --user elonmusk --limit 20
xtf --search "openclaw" --limit 10
xtf --url https://x.com/user/status/123 --replies
```
Backend selection: `--backend auto` (default, Nitter first then browser), `--backend nitter`, `--backend browser`.
## Lists & Articles
Lists try Nitter first (plain HTTP) and fall back to the browser; Articles need the browser.
```bash
# Articles (and the Lists browser fallback) need a browser driver:
# Camofox running on localhost:9377 (default), or:
export XTF_BROWSER=playwright
xtf --list https://x.com/i/lists/1455045069516357634 --limit 30
xtf --article https://x.com/i/article/2011779830157557760
```
Note: full X Article text requires X login; without it you get title + public preview (`is_partial: true`).
## Mentions Monitor (cron-friendly)
```bash
xtf --monitor @yourhandle
# exit 0 = no new mentions, 1 = new mentions found, 2 = setup error
# First run builds a baseline silently; later runs report only new URLs.
```
## Error Handling for Agents
Every error result includes `error` (message) and `error_code`:
`invalid_input` · `not_found` · `rate_limited` · `upstream_down` · `backend_unavailable` · `all_backends_failed` (with per-backend `error_causes`).
## Python API
```python
from xtf import Router
router = Router()
tweets = router.fetch_timeline("elonmusk", limit=20) # list[Tweet]
print(tweets[0].to_dict())
```
## Directory Structure
```
src/xtf/
├── backends/ # fxtwitter.py, nitter.py, browser.py
├── parsers/ # pure parsing functions, fixture-tested
├── router.py # auto-fallback
├── monitor.py # mentions monitor
└── cli.py # the `xtf` command
scripts/fetch_tweet.py # v1-compatible shim
```
Looking for Chinese-platform fetching (Weibo/Bilibili/WeChat) or tweet growth tracking? Those moved out of this repo in v2 — see MIGRATION.md.
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.