x-tweet-fetcher
Skill by ythx-101
Fetch tweets, replies, timelines, search results, X Lists and X Articles from X/Twitter. It is for agents that need this data without logging in or using API keys.
Install x-tweet-fetcher
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher /tmp/x-tweet-fetcher && mkdir -p ~/.claude/skills && cp -r /tmp/x-tweet-fetcher ~/.claude/skills/x-tweet-fetcherRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher /tmp/x-tweet-fetcher && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/x-tweet-fetcher ~/.gemini/antigravity-cli/skills/x-tweet-fetcherAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
x-tweet-fetcher is a command-line tool and Python API for reading X/Twitter content. Single tweets are fetched through FxTwitter with zero dependencies. Timelines, search and replies use a Nitter instance set in XTF_NITTER, and X Lists and Articles use a browser driver, either Camofox or Playwright. A router picks a backend automatically, with Nitter first and the browser as fallback.
All backends return a unified JSON schema. Every error includes a machine-readable error_code, so agents can branch on failures. A mentions monitor is included for cron jobs, with exit codes for new mentions and setup errors. The skill is aimed at developers and agents that need to read public X posts, lists and articles in a structured form.
Written from the project's SKILL.md and checked against it.
What it can do
- Single tweetFetches one tweet with text, author, stats, media URLs and quoted tweets.
- Reply threadsFetches replies to a tweet using Nitter or a browser backend.
- User timelineFetches a user's timeline with a set limit, using Nitter or a browser.
- SearchRuns a search query on X and returns matching results through Nitter.
- User profileFetches profile information for a username with zero dependencies.
- X ListFetches the tweets from an X List URL or ID through the browser driver.
- X ArticleFetches an X Article by URL or ID through the browser driver.
- Mentions monitorChecks for new mentions of a handle and reports only new URLs after the first run.
What you need
- Python 3
- A Nitter instance for timelines, search and replies
- Camofox on localhost:9377 or Playwright for Lists and Articles
- An X login for full Article text
Try asking
- Fetch the text and stats of this tweet: https://x.com/user/status/1234567890
- Get the latest 20 posts from the elonmusk timeline.
- Search X for recent posts about openclaw and return 10 results.
Good to know
- Timelines, search and replies need a Nitter instance.
- Lists and Articles need a browser driver, Camofox or Playwright.
- Full X Article text requires X login. Without it you get the title and a partial preview.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitignore88 B -
CHANGELOG.md6 KB -
LICENSE1 KB -
MIGRATION.md4 KB -
README.md9 KB
Show all 8 files
-
SKILL.md4 KB -
VERSION6 B -
pyproject.toml1 KB
Alternatives to x-tweet-fetcher
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
x-tweet-fetcher: common questions
Does x-tweet-fetcher need an X account or API key?
The description says it works without login or API keys. Full X Article text is the exception and requires X login.
What happens when a fetch fails?
Every error result includes an error message and an error_code, such as rate_limited, upstream_down or all_backends_failed. The all_backends_failed case also lists per-backend error_causes.
Can I use it from Python instead of the command line?
Yes. The source shows a Python API with a Router class that has a fetch_timeline method returning Tweet objects.
How do I install x-tweet-fetcher?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is x-tweet-fetcher free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is x-tweet-fetcher safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to x-tweet-fetcher?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
