/tools:web-scraperfrom tools
Build reliable, production-grade web scrapers: settle who the job is for, find the best data source on the site, then generate a Python script for scheduled extraction. Use this skill whenever the user wants to scrape a website, extract data from web pages, build a crawler, set up recurring data collection, reverse-engineer a site's API, or find hidden data endpoints. Also trigger when the user mentions "scrape", "crawl", "extract from site", "web data", "pull data from URL", "scheduled scraping", "monitor a page", "embed endpoint", "oEmbed", "syndication endpoint", or asks how to get data from a specific website or how to reach content without logging in. Assumes the user is authorized by the site owner unless they say otherwise, so it covers pulling data out of your own or a client's site as well as scraping a third party, and it covers red-teaming a site's scraping defenses: "how exposed is our data", "test our bot protection", "what could a scraper get from us", "scraping resilience". Use it as well to search X/Twitter posts or research what people post about a topic there ("what are people saying about Y on Twitter", "what's trending on X about Y"), or to export the user's X bookmarks.
Trending skills
7-day visitors to each skill page
Ships in tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build scrapers that survive site redesigns by finding the most stable and efficient data source first, then generating a clean Python script for recurring extraction.
Every scraping task MUST go through all three phases in order. Skipping discovery leads to fragile scrapers that break on the first deploy.
Default: the user is authorized by the site owner. They run the site, or they were hired by whoever does. Work on that basis unless the user says otherwise.
So robots.txt is not a constraint here. It is a crawling convention
addressed to anonymous bots, not a contract, and it does not bind someone
the owner hired. Read it for what it reveals about where the site expects
machine traffic, then pick the best source regardless of what it disallows.
Do not ask the user to confirm their authorization, do not raise
robots.txt as a blocker, and do not downgrade a good endpoint to a worse
one on its account.
Authorized work splits two ways and they want opposite things from discovery. Ask which, if the request does not already say.
Extraction. The goal is the data, by the most stable path. Use whatever access came with the brief — a login, a test account, an API key, a staging URL — and then get on with discovery.
Do not route the job through the client's engineers. No "ask their backend team for the API docs", no "ask ops for a WAF allowlist rule", no waiting on a database replica. If anyone inside had the time or the knowledge to open that door, the job would not have reached you. Asking costs days and usually comes back as a no, so treat the site as the only interface you have and work the discovery ladder below.
Identify yourself instead of hiding. Set a User-Agent naming the job and a
contact, such as AcmeDataSync/1.0 (+https://acme.example/contact), so
whoever reads the access logs later can tell your traffic from an attack.
Keep the rate limiting: the risk on an authorized job is not getting
blocked, it is knocking over your own client's site.
Red team. The goal is a defensible answer to "what could an outsider take from us, and at what cost". Any access the brief handed you invalidates that answer, so set it aside and work with exactly what a stranger has. Browser impersonation and the whole anti-detection ladder are in scope here, unlike on an extraction job, because getting past the defense is the measurement rather than an obstacle to it.
Stop rules that hold even with a signed engagement:
Reaching the data through a login, an API key signup, or any account the
user registered for means the user agreed to that service's terms. Those
are a contract they actually entered, unlike robots.txt. When the target
sits behind an account:
Also stop if the data belongs to someone else entirely — another person's private account, a paywall the user has not paid for.
If the user says they are scraping a third party with no relationship, see "Third-party scraping" under Important Caveats.
Goal: find the most efficient and stable way to get the data. Prefer structured endpoints over DOM parsing. Work down the priority list until you find something that works.
Read references/discovery-strategies.md before starting discovery.
Discovery priority (highest to lowest):
cdn.syndication.twimg.com,
"Embed this post" iframes). Often on a different host with different bot
rules from the main site, and contractually frozen because third parties
depend on it. Retrieval only: it renders an item whose ID you already
have, it cannot list items, so pair it with a separate source for IDs./graphql, /gql, or __relay in
network requests.__NEXT_DATA__, __NUXT__,
window.__INITIAL_STATE__, window.__DATA__, Remix __remixContext,
Gatsby pageContext, etc.__NEXT_DATA__. Look for ?_rsc= requests in the network
tab. Only parse RSC directly if no cleaner source (JSON-LD, API) exists./wp-json/wp/v2/), Shopify
Storefront API, Drupal JSON:API, Contentful, Strapi, Ghost, etc.<script type="application/ld+json">,
microdata, RDFa.data-product-id, data-price,
data-sku.<article>, <li>,
<table>, <time>) over class names. Avoid framework-generated classes
like .css-1a2b3c or .MuiButton-root.Mobile app as an API map: if the target has a native app, decompiling
its APK exposes the full host and route list plus the company's internal
API vocabulary, which often makes web discovery much faster. Mobile
endpoints are frequently not directly callable (app session bootstrap,
device headers, request signing/attestation), so use the APK to map the
API, then prefer the matching web source. See
references/discovery-strategies.md.
Discovery tools:
read_network_requests (Claude in Chrome) — preferred for
intercepting XHR/fetch/RSC requests. Survives page navigations unlike
JS-based interceptors. Always start network tracking before navigating.read_page / javascript_tool — for inspecting DOM, JSON-LD,
data attributes, embedded script tags.curl / httpx from the terminal — for verifying endpoints work
outside the browser context.jadx / apktool (with adb, mitmproxy): decompile a site's mobile
app to map its API surface when browser inspection is not enough.Output of discovery: a short report documenting what was found, which approach is recommended, and why.
Goal: produce a single Python script the user can run on a schedule (daily, monthly, etc.) with minimal dependencies.
Read references/scraping-patterns.md before generating the script.
Key principles:
Script requirements:
python scrape.py \
--output ./data/output.jsonl \ # or .csv, .parquet
--format jsonl \ # jsonl | csv | parquet
--date-range 2024-01-01:2024-01-31 \ # optional
--page-limit 10 \ # optional, for pagination
--connection postgres://... # optional, write to DB instead
The generated script must:
uv script metadata header (# /// script) for dependency managementargparse or clickUSER_AGENT constant and HEADERS dict at the top for easy tuningStart
│
├─ Has the user provided a URL? ──No──▶ Ask for the target URL
│
Yes
│
├─ What is the job? (Phase 1, owner-authorized by default)
│ ├─ Extraction ──▶ Any source is fair game. Use the access in the
│ │ brief, never wait on the client's engineers.
│ │ Identify yourself in the User-Agent.
│ ├─ Red team ──▶ Take no shortcuts, outside view only. Record cost
│ │ per approach. The write-up is the deliverable.
│ └─ Behind a login or registered account? ──▶ Either way the
│ account's terms apply. Report them, stay inside
│ what the account is entitled to.
│
├─ Run Discovery (Phase 2)
│ ├─ API endpoint found? ──Yes──▶ Use httpx + JSON parsing
│ ├─ Embed/oEmbed endpoint? ──Yes──▶ Do you have item IDs already?
│ │ ├─ Yes ──▶ Use httpx + embed endpoint (no auth needed)
│ │ └─ No ──▶ Keep looking for a listing source, then pair the two
│ ├─ GraphQL endpoint? ──Yes──▶ Use httpx + GraphQL queries
│ ├─ JSON blob in HTML? ──Yes──▶ Use httpx + regex/bs4 extraction
│ ├─ RSC payload? ──Yes──▶ Check if cleaner source exists
│ │ ├─ JSON-LD/API also available? ──Yes──▶ Use that instead
│ │ └─ RSC is only source? ──Yes──▶ Use httpx + RSC parser
│ ├─ CMS API available? ──Yes──▶ Use httpx + platform-specific path
│ ├─ Structured data? ──Yes──▶ Use httpx + bs4/json extraction
│ ├─ Stable selectors? ──Yes──▶ Use httpx + bs4 CSS selectors
│ └─ JS-rendered only? ──Yes──▶ Try curl_cffi first, then Playwright
│
├─ Report findings to user
│
├─ Run Scraping (Phase 3)
│ └─ Generate Python script following patterns in reference file
│
└─ Deliver script + usage instructions
Use this for research questions about posts on X and for exporting the user's own bookmarks, not for building a scheduled scraper. Both need a logged-in session, and the syndication endpoint only returns a post whose ID you already have. So drive the user's own logged-in Chrome instead.
references/x-search.js hooks XMLHttpRequest and fetch and keeps X's
own GraphQL responses: SearchByRawQuery for search (it was
SearchTimeline until 2026-11) and BookmarkTimeline for bookmarks. It
navigates inside X's single-page app with history.pushState plus a
popstate event, so X's own code makes the authenticated call. You never
forge GraphQL query IDs or the x-client-transaction-id header. Each
scroll loads another page.
Read the GraphQL payload, not the rendered page. Since 2026-11 the timeline
has no data-testid attributes and no <time datetime>, and its
virtualised list reuses article nodes, so an image read from the DOM can
belong to the neighbouring post. A quoted post also renders as a nested
article with its own status link and passes for a post of its own. In a
run over 230 bookmarks, a DOM collector reported 247 posts and gave one
post another post's photo; the GraphQL collector returned the 230 exactly,
with every post's photos matching the syndication endpoint.
https://x.com/explore in a Claude in Chrome tab.references/x-search.js into javascript_tool, once per tab.await __q('key', 'query', { mode: 'top', pages: 3 }). mode is
'top' or 'live'. It stores the results and returns only a count.__pg(key, i) (about 6 posts per call, sorted by likes)
and __full(author, date), several calls in one browser_batch.Each record is
{url, author, name, followers, date, text, likes, rts, replies, views, links, photos, video, article, quoted},
with text cut to 600 characters (maxText changes that). Return only these
records to context, never the raw payload or screenshots. One page of
"generative UI" Top results gave 21 posts in 9.5 KB, against 194 KB raw.
Budget about 120-150 tokens per post.
Add lang:en to queries. X's OR matching is loose, so a word list like
"generative UI" (hype OR wrong) drifts into unrelated "generative AI"
posts. Use quoted phrases and min_faves:. Operators that work:
since:, until:, min_faves:, from:, filter:links,
-filter:replies.
references/x-search.js on any x.com page and run
__xbookmarks(). It opens /i/bookmarks inside the app (X redirects it
to /i/history, where Bookmarks is the default tab), scrolls in the
background, and keeps every post from each BookmarkTimeline page in
window.__xb, keyed by status ID.({ n: __xb.size, done: __xbDone }) every 30-40 seconds. 230
bookmarks took about 35 seconds.__xbRows(i), 8 rows per call: the status ID in
base 36, the date, a photo count with v for video and A for an X
Article, and the start of the text.photos holds pbs.twimg.com/media URLs at name=large, plus an X
Article's cover image; video and GIF posters are left out. quoted is the
ID of the quoted post, which is not a bookmark of its own. published is
exact to the millisecond. For a status ID alone, the time is
(id >> 22) + 1288834974657 milliseconds since the epoch.
Gaps:
article.title and
article.preview. Open the status page, remove every other article
element from the DOM, then call get_page_text. Without the removal it
can return a reply instead of the post.expanded_url values from the payload, not resolved further.cdn.syndication.twimg.com/tweet-result returns it
without signing in (see references/discovery-strategies.md). It omits a
quoted post it cannot show and returns some older posts as
TweetTombstone, so it can miss that a post quotes another.For a scheduled capture, run the same flow in Playwright with a saved
storage_state from a one-time headed login, and fail loudly on a login
wall (a /login or /i/flow/login URL).
javascript_tool?, &, = or words like "token" or
"cookie" with [BLOCKED: Cookie/query string data]. __clean breaks
those up. Long digit runs such as status IDs can come back as
[BLOCKED: Base64 encoded data]; encode them in the page with
BigInt(id).toString(36) and decode before use.navigator.clipboard froze the tab
for 45 seconds on a background tab, and fails when the tab lacks focus.popstate and on the operation
names above. An empty result usually means one of them changed: list the
GraphQL operation names the page requests and add the new one to
__xcap and __xsearchOps.Paid alternatives for search: xAI's x_search tool through the Responses
API (semantic search, billed per post fetched; pricing changed 2026-09-21,
see docs.x.ai/developers/pricing), or the official X API pay-per-use tier
(about $0.005 per post read; third-party sources report a 7-day search
window on that tier).
#...) are never sent to the server. A non-JS
client receives unfiltered results, a silent-failure trap. Map the
fragment state to the API's real query/body parameters, or use the SSR
data route. See references/discovery-strategies.md.429, and respect
Retry-After.references/scraping-patterns.md: switching
browser channel does not help, but a derived non-headless User-Agent
plus --disable-blink-features=AutomationControlled (together) usually
clears it.Only when the user says they have no relationship with the site.
robots.txt and tell the user what it says.robots.txt
disallows an endpoint (e.g. /api/search), treat it as discovery-only:
use it to understand the data, but scrape from a compliant source
instead (SSR HTML, __NEXT_DATA__, or a non-disallowed route), even
when that is less elegant.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (dumkydewilde/agent-skills) — no native marketplace selected
npx claudepluginhub p/dumkydewilde-tools-plugins-claude-tools5 skills in this plugin
/conversation-historySearch past Claude, Codex, OpenCode, and ChatGPT conversations. Use when user asks "did we discuss", "what did we talk about", "find conversation about", "search history", "past conversations", or references something from a previous assistant session./field-notesUse when the user wants a "field notes" poster, plate, card, or sheet: a hand-made mark on aged paper paired with a photo, a written observation, or a large drawn diagram, captioned in typewriter type. Triggers on "field notes", "field note style", "rubber stamp poster", "travel poster from this photo", "stamp sketch", "naturalist plate", "specimen card", "aged paper poster", "make a poster from these photos", "field-note a Wikipedia page", and on wanting a diagram, chart, or mermaid graph to look hand-drawn, printed, painted, or annotated on paper rather than rendered by a computer. Also use when the user supplies photos or a Wikipedia URL and asks for one poster per subject, and when several sheets have to be collected — a "notebook", a "deck" or "slides" of field notes, an "overview" or "index" page of notes or notebooks, a "shelf" of several notebooks, or a set to swipe through on a tablet. Covers all three sizes: one standalone note, one notebook of notes, and a collection of notebooks.
/share-secretsKeep API keys and tokens in one password manager and load them on every machine through its CLI, with 1Password op:// references in a committed .tpl file, or Bitwarden Secrets Manager through bws. Read this when a project or shell needs a secret, when setting up a new machine, or before writing a key into a .env, a shell rc, or a config file./wizardGenerate an interactive bash wizard that walks a human through steps only they can perform. Use for /wizard, 'write a setup script for this', 'walk me through provisioning X', 'turn this README setup section into a script', or when the job means clicking through a third-party dashboard, minting credentials, wiring CI secrets, or running a one-off migration or cutover. Not for steps the agent can perform itself.