Install
openclaw skills install claude-code-x-scraperX (Twitter) data extraction and analysis. Use when user asks to "get tweets from @username", "search X for", "analyze Twitter data", "fetch tweets about [topic]", or "scrape X posts". Supports user timelines, keyword search, tweet details, and social media research workflows.
openclaw skills install claude-code-x-scraperExtract and analyze X/Twitter data programmatically.
# Get user tweets
python3 scripts/get_user_tweets.py elonmusk 20
# Search for topic
python3 scripts/search_tweets.py "machine learning" 30
Credentials: Create ~/.openclaw/credentials/x_api_tokens.env:
X_BEARER_TOKEN=Bearer YOUR_TOKEN_HERE
Get token: https://developer.twitter.com/en/portal/dashboard
| Script | Purpose |
|---|---|
get_user_tweets.py | Fetch user timeline |
search_tweets.py | Search by keyword |
fetch_x_playwright.py | Browser-based scraping |
x_api_client.py | API client module |
# Exclude replies/retweets
python3 scripts/get_user_tweets.py elonmusk 20 --no-replies --no-retweets
# Complex search
python3 scripts/search_tweets.py "(AI OR ML) from:elonmusk lang:en" 20
MIT