X Scraper

🌐Community
by aatrooox · vlatest · Repository

X Scraper extracts data from websites quickly & efficiently, saving you time and effort in gathering online information.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add x-scraper npx -- -y @trustedskills/x-scraper
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "x-scraper": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/x-scraper"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The X Scraper skill extracts recent posts and engagement data (views, likes, retweets, replies) from X.com (formerly Twitter) for a given username. It utilizes authenticated cookies to access user data and outputs the scraped information in a JSON format. This allows AI agents to gather specific X.com post history programmatically.

When to use it

  • Monitor recent activity of a particular X.com user.
  • Collect posts from an X.com account for analysis or archiving.
  • Track engagement metrics (likes, retweets, replies) on X.com posts.
  • Respond to requests like "整理 @某人 最近的发言" or "看看某人在X上说了什么".

Key capabilities

  • Extracts recent X.com posts.
  • Retrieves full engagement data: views, likes, retweets, and replies.
  • Uses authenticated cookies for access.
  • Outputs data in JSON format with fields like postLink, publishTime, views, likes, retweets, and replies.
  • Supports specifying the number of posts to retrieve.

Example prompts

  • "Scrape X.com posts from @example_user."
  • "Get the latest 15 tweets from example_user."
  • "整理 @某人 最近的发言" (Summarize recent posts by a user)

Tips & gotchas

  • Prerequisites: Requires Python 3.11+, Playwright, and a cookie file (/tmp/x_cookies_pw.json). Ensure these are installed before use; see the skill's documentation for setup instructions.
  • Cookie File: The script requires an authenticated cookie file to access X.com data. You will need to obtain this separately.
  • Output Format: Engagement metrics (views, likes, retweets, replies) are abbreviated using K and M suffixes.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
aatrooox
Installs
33

🌐 Community

Passed automated security scans.