xfetch
Fast X/Twitter CLI scraper. Use when you need to fetch tweets, user profiles, search results, timelines, followers, or any X/Twitter data. No API keys required - uses cookie-based auth.
Why use this skill?
Use xfetch to scrape X tweets, followers, profiles, and search data without API keys. Fast, reliable, and perfect for OpenClaw data automation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/xfetchWhat This Skill Does
The xfetch skill is a powerful, headless command-line interface tool designed for efficient scraping and data retrieval from the X/Twitter platform. By leveraging cookie-based authentication, it bypasses the traditional limitations of API keys, allowing users to access a wide range of public and account-bound data. This skill enables agents to pull user profiles, follower lists, chronological or algorithmic timelines, search results, and complete conversation threads. With its built-in pagination support, JSON/CSV output formatting, and automatic query ID management, xfetch is an essential tool for social media data harvesting, sentiment analysis, and community auditing within the OpenClaw environment.
Installation
To integrate this skill into your OpenClaw agent, use the following command:
clawhub install openclaw/skills/skills/lxgicstudios/xfetch
Once installed, ensure you have your X.com session cookies (auth_token and ct0) handy. You can initialize authentication by running:
xfetch auth set --auth-token <token> --ct0 <token>
Verify your credentials by executing xfetch auth check to ensure your session is active.
Use Cases
- Research & Audience Insight: Analyze a user's follower base or their following patterns to understand audience composition.
- Market Intelligence: Search for industry-specific hashtags or keywords in real-time to track emerging trends or competitor sentiment.
- Content Aggregation: Fetch full threads or historical tweets for archiving, model training, or summarizing conversations.
- Personal CRM: Sync your home timeline, bookmarks, or likes to keep track of important discussions across your personalized X feed.
Example Prompts
- "xfetch, please fetch the last 50 tweets from @OpenClawAI and save them in JSONL format for me to analyze."
- "Search for the latest tweets containing 'AI agents' and save the top 20 results into a file called ai_trends.json."
- "Could you retrieve the full conversation thread for this URL: https://x.com/user/status/123456789 and display it in plain text?"
Tips & Limitations
- Rate Limiting: Twitter enforces strict rate limits. When performing high-volume tasks, use the
--delayflag to introduce pauses between requests to avoid account bans. - Authentication: Keep your cookies secure. These grant full access to your account session. Do not share your
auth_tokenorct0with others. - Dynamic Queries: Twitter updates its internal GraphQL schema regularly. If you encounter errors, run
xfetch query-ids --refreshto fetch the latest query IDs. - Pagination: When scraping large datasets (like long follower lists), always specify a limit with
-nor use--allwith caution, ensuring your network connection is stable during the operation.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-xfetch": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, data-collection, external-api
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.