xtwitter-scraper

xtwitter-scraper is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 151 tokens per session (1,298 once invoked), scanned A, original, MIT.

A typed .NET client for Xquik’s REST API, which provides automated access to X for searching, user lookups, posting, data extraction, monitoring, webhooks, and giveaway draws.

In plain words
What is it for?
Use it to add X search, account monitoring, posting workflows, extraction jobs, or webhook processing to ASP.NET Core apps and background services.
Why use it?
It avoids manually building HTTP requests, query strings, retries, and response handling when connecting a .NET application to Xquik.

Skill for Claude CodeCodex

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 skills/managedcode/dotnet-skills/xtwitter-scraper
Any agent
npx skills add managedcode/dotnet-skills --skill xtwitter-scraper
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xtwitter-scraper

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/xtwitter-scraper.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/xtwitter-scraper)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/xtwitter-scraper"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/xtwitter-scraper.svg" alt="Measured on agentmods" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 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.00151 $0.01298
Opus 5 $0.00076 $0.00649
Sonnet 5 $0.00030 $0.00260
Haiku 4.5 $0.00015 $0.00130

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

Security

Grade A, and why

xtwitter-scraper 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.

catalog/Libraries/XTwitterScraper/skills/xtwitter-scraper/SKILL.md · 94 lines

How it starts

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

XTwitterScraper

Trigger On

  • adding the XTwitterScraper NuGet package to a .NET application
  • searching tweets, reading tweet/user data, running extraction jobs, or monitoring X accounts through Xquik from .NET
  • posting tweets, replies, likes, reposts, follows, or DMs through typed SDK methods
  • exporting extraction results, handling raw responses, retries, rate limits, or API errors
  • wiring Xquik webhook events into ASP.NET Core, workers, queues, or background processing

Workflow

  1. Confirm the project actually needs Xquik API access from .NET. If it only needs prompt guidance, use a generic agent or API-design skill instead.

  2. Install the NuGet package:

    dotnet add package XTwitterScraper
    
  3. Configure credentials through environment or secret storage. Prefer X_TWITTER_SCRAPER_API_KEY; keep X_TWITTER_SCRAPER_BASE_URL at its default unless a test fixture intentionally overrides it.

  4. Create XTwitterScraperClient at the composition boundary and inject it or a narrow wrapper into application services. Do not scatter client construction across handlers.

  5. Build typed Params objects for SDK calls instead of manually concatenating query strings.

  6. Treat paginated responses, extraction jobs, binary exports, and webhook events as different flow types. Do not force them through one generic helper.

  7. Preserve typed exceptions. Catch XTwitterScraperRateLimitException, authorization errors, and 5xx errors only where the application can retry, defer, or show a useful state.

  8. Validate with unit tests around your wrapper and integration tests with configured API credentials only when the environment explicitly provides them.

Architecture

flowchart LR
  A["ASP.NET Core or worker service"] --> B["Application wrapper"]
  B --> C["XTwitterScraperClient"]
  C --> D["Xquik REST API"]
  D --> E["Typed response models"]
  D --> F["Webhook events"]
  D --> G["Binary exports"]

Core Knowledge

  • XTwitterScraperClient reads X_TWITTER_SCRAPER_API_KEY, X_TWITTER_SCRAPER_BEARER_TOKEN, and X_TWITTER_SCRAPER_BASE_URL from the environment, and can also be configured manually.
  • The default API base URL is https://xquik.com/api/v1.
  • Common read paths include tweet search, tweet detail, user search, user detail, profile tweets, followers, trends, monitors, and extraction jobs.
  • Common write paths include tweet creation, replies, likes, reposts, follows, DMs, media upload, and giveaway draw actions.
  • Request methods use typed Params classes, such as TweetSearchParams, and return typed response models such as paginated tweets.
  • Binary export methods return HttpResponse; copy the stream deliberately instead of assuming JSON deserialization.
  • Raw response access is available through WithRawResponse when code needs status, headers, or raw body inspection.
  • WithOptions can override client options for one call without mutating the original client or service.
  • The SDK retries selected transient failures by default. Do not add broad outer retry loops without checking idempotency and endpoint semantics.

Read the full file on GitHub · 94 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 94 lines · 151 tokens per session scan A 095b70381450

Subscribe to this mod's changes

xtwitter-scraper is a skill published in the GitHub repository managedcode/dotnet-skills (477 stars, last pushed 4d ago), licensed MIT. It adds 151 tokens to every session and 1,298 once invoked, about $0.0008 per session on Opus 5. 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-09-03.

Related

Other skills, from other repositories

scrapling

使用 scrapling 进行网页抓取和数据提取。自动选择 Fetcher,支持 Cloudflare/WAF 绕过、Session 登录、HTML 解析。当用户提到 scrape/crawl/fetch page/extract data/爬取/抓取/绕过Cloudflare/解析HTML/批量采集 时触发。.

fengshao1227/ccg-workflow · 74 tokens

close-task-commit-push-pr

Close the active backlog task (detected from branch name), commit all changes, push to remote, and open a pull request. Use when the user says "close task and ship it", "close task commit push pr", or invokes /close-task-commit-push-pr.

devoxx/DevoxxGenieIDEAPlugin · 64 tokens

macos-use

GUI control for macOS apps via mediar-ai's mcp-server-macos-use. Click, type, scroll, key-press, open apps — driven by accessibility tree, works in non-interactive Claude Code mode. Use this for any Sutando task that needs to drive another macOS application (Safari, Zoom, Mail, Finder, etc.).

sonichi/sutando · 75 tokens

cmux-browser

End-user browser automation with cmux. Use when you need to open sites, inspect or interact with browser surfaces, wait for page state, and extract data without stealing focus.

manaflow-ai/cmux · 39 tokens

visual-verify-ui

Wraps the browser tool into a dedicated visual QA testing skill for frontend work.

winstonkoh87/Athena-Public · 21 tokens

mutation-testing

Use when running mutation testing, killing mutants, verifying test quality, checking mutation score, or analyzing survivors after the test baseline is green.

SebastienDegodez/copilot-instructions · 29 tokens