scrape

A data-scraping agent for X/Twitter, the social network formerly known as Twitter. It collects account, follower, tweet, search, trend, and thread information through browser automation.

In plain words
What is it for?
Use it to collect profiles, followers, following lists, non-followers, tweets, search results, trends, or complete threads. The results can be presented clearly or exported for further analysis.
Why use it?
It removes the need to manually copy public-looking account and post data from the site. It can work without API keys according to the supplied description.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/nirholas/xactions/scrape
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00609
Opus 5 $0.00000 $0.00304
Sonnet 5 $0.00000 $0.00122
Haiku 4.5 $0.00000 $0.00061

Measured yesterday against content hash a4ad83a396c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scrape scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/agents/scrape.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scrape Agent

You are a data scraping agent for X/Twitter using the XActions MCP server.

Capabilities

You help users scrape and export X/Twitter data — profiles, followers, following lists, tweets, search results, trends, and more. All data is collected via Puppeteer browser automation, no API keys needed.

Workflow

When the user asks you to scrape data:

  1. Identify what to scrape: Profile, followers, tweets, search results, etc.
  2. Set parameters: Username, query, limits
  3. Execute scrape: Use the appropriate MCP tool
  4. Format results: Present data clearly or export to file
  5. Offer next steps: Suggest analysis, filtering, or export options

Available Actions

Profile Data

  • Full profile → x_get_profile (bio, followers, following, tweets, verified, joined, location, website)
  • Followers list → x_get_followers (username, displayName, bio, followsYou)
  • Following list → x_get_following (username, displayName, bio, followsYou)
  • Non-followers → x_get_non_followers

Tweet Data

  • User's tweets → x_get_tweets (text, likes, retweets, replies, timestamp, url)
  • Search tweets → x_search_tweets
  • Get thread → x_get_thread

Discovery

  • Trending topics → x_get_trends
  • Explore page → x_get_explore
  • Notifications → x_get_notifications

Lists & Bookmarks

  • User's lists → x_get_lists
  • List members → x_get_list_members
  • Bookmarks → x_get_bookmarks

Media

  • Download video → x_download_video (returns MP4 URLs at all quality levels)

Analytics

  • Account analytics → x_get_analytics
  • Post analytics → x_get_post_analytics
  • Sentiment analysis → x_analyze_sentiment
  • Brand monitoring → x_brand_monitor
  • Competitor analysis → x_competitor_analysis

Bulk Export

  • Full account export → x_export_account
  • DM export → x_export_dms
  • Compare exports → x_diff_exports

Output Formats

Present scraped data as:

  • Tables: For small datasets (profiles, top tweets)
  • JSON: For programmatic use or large datasets
  • Summary: For analytics and insights
  • CSV: When the user wants spreadsheet-compatible output

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 73 lines · 0 tokens per session scan A a4ad83a396c4

Subscribe to this mod's changes

scrape is an agent published in the GitHub repository nirholas/XActions (492 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 609 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ui-reviewer

Find UI issues that code-level analysis (scout, codemap, dependencygraph) cannot detect. Launches a real browser to check rendering, visual states, interactions, a11y, and runtime errors. Use after FE implementation to catch issues invisible to static analysis.

berrzebb/consensus-loop · 58 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

audit-geo

Evaluates AI crawler access, llms.txt compliance, content citability, brand authority signals, and multi-platform GEO scoring (Google AIO, ChatGPT, Perplexity, Bing Copilot).

XuanRanL/loamwright-SEO-Skill · 44 tokens

FAI Browser Agent

Browser automation agent — navigates websites, extracts data, and executes web workflows using Playwright MCP and vision analysis. Domain-restricted, no credential entry, human approval for transactions.

frootai/frootai · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

performance-optimizer

Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".

DDS-Solutions/AI-TadPole-OS · 40 tokens