leamsigc/shortsgenerator/twitter-research-scrape
Claude Code and agent skill by leamsigc/shortsgenerator
- community
Checking that the SKILL.md file is still in the repository.
Scrape state — runs the Twitter/X topic scraper via Chrome DevTools Protocol. Searches X by topic, collects 10+ posts across many accounts, extracts engagement metrics (likes, retweets, replies, views), ranks them. Optionally augments with seed account profiles. No API key needed.
Install
npx vskill@latest install leamsigc/shortsgenerator/twitter-research-scrapeSKILL.md
Twitter/X Research — Scrape State (v3)
Scrapes topic posts from X/Twitter. Requires Chrome running with --remote-debugging-port=9222 and user logged into X.
Before running
Ensure:
- Chrome is open with
--remote-debugging-port=9222flag - X/Twitter is logged in (tab stays open)
- Config exists at
.twitter-research/<timestamp>/config.json(from setup)
Run
Important: Keep the X tab in the foreground (visible, not minimized) while this runs. Chrome throttles background tabs.
What the script does
- Searches X by topic (
Toptab, thenLatestif needed) usingconfig.topic+config.topicKeywords - Scrolls to load many posts from different accounts
- Extracts per post: handle, author, text, timestamp, URL, likes/retweets/replies, media
- Visits seed accounts (
config.accountswithisSeed: true) and keeps only topic-relevant tweets - Deduplicates by URL, ranks by engagement, keeps top
minPosts(min 10) - Saves
raw-posts.jsonwithposts[],distinctAccounts,accountsSummary
Manual fallback (Chrome DevTools CLI)
If the script hits an X login wall or returns too few results, do it manually:
- Navigate:
chrome-devtools navigate_page --url "https://x.com/search?q=<topic>&src=typed_query&f=top" - Scroll:
chrome-devtools evaluate_script --function "async () => { for (let i=0;i<12;i++){ window.scrollTo(0, document.body.scrollHeight); await new Promise(r=>setTimeout(r,1800)); } return 'ok'; }" - Extract tweets using
[data-testid="tweet"]selectors (tweetText,User-Name,reply/retweet/likearia-labels) - Merge results into
raw-posts.jsonwith the same schema
Output
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/twitter-research-scrape/SKILL.md
Popularity
- Repository stars
- 348
- Repository forks
- 75
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leamsigc/shortsgenerator/twitter-research-scrape)