agentleFS
GucixdevGucixdev/claude-skills/skills/scrape-everything/SKILL.md

scrape-everything

Skill0 starsChanged 7 days agoMITView on GitHub

Get data out of anything - the ladder from official API, hidden JSON API, feeds and sitemaps, static HTML down to a headless browser and OCR; politeness (robots.txt, rate limits, caching); raw responses kept next to parsed TSV or JSONL; the scraper is the product. Use for any task pulling data from websites, APIs, apps or documents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep the raw response (raw/DATE/URL-SAFE-NAME.json) next to the parsed output, so a parser fix reruns offline.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

scrape-everything

The scraper is the product

His correction (2026-09, loremap): "ty nie masz scrapować forów XD, ten silnik ma się tym zajmować". One or two requests to confirm a response shape before coding are expected; many turns of hand-probing an undocumented API are not. If the shape isn't quickly found, make discovery a feature of the tool (loremap categories PREFIX lists real names instead of me guessing them), or stop and state the limit.

The ladder: first rung that has the data

  1. An official API or export (JSON, CSV, a data dump). Read its docs and limits.
  2. The site's own JSON API: the Network tab or a HAR shows what the page calls; call it with curl.
  3. Feeds and indexes: RSS/Atom, sitemap.xml, MediaWiki api.php, GitHub's API, raw.githubusercontent.com.
  4. Static HTML: curl plus a real parser - xmllint --html --xpath, Python's html.parser, htmlq/pup if installed. Regex on HTML only for one known, stable line.
  5. A browser for pages that only render with JavaScript or need his login: his Firefox through firefox-devtools-mcp (machine (browsers)), or Playwright in a scratch project; a targeted evaluate, not the whole DOM.
  6. Documents and images: pdftotext -layout, tesseract IMG out for scans, ffmpeg for frames.

Politeness and cost

  • robots.txt and the terms of service; an API key over scraping a page that offers one.
  • One request at a time by default, a delay between pages, If-None-Match/If-Modified-Since (ETag) and a local cache so a rerun costs nothing; back off on 429 and honour Retry-After.
  • A descriptive User-Agent with a contact; never rotate identities to dodge a block.
  • Logins and cookies stay on his machine; tokens from the environment (machine), never on a command line.
  • In a cloud sandbox the shell usually can't reach the web: WebFetch there, curl on his machine.

Data

  • Keep the raw response (raw/DATE/URL-SAFE-NAME.json) next to the parsed output, so a parser fix reruns offline.
  • Parsed data as TSV or JSONL with a header or a stable key order; one record per line (code (languages) (dod)).
  • Make it resumable: a list of done keys, atomic writes (temp file + mv), a queue for parallel downloads (his lib/dspq).
  • Validate on the way in: counts per page, empty fields, a sample checked against the page by eye once.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.