agentleFS
zen-mcpzen-mcp/browser/.agents/skills/scrape-with-pagination/SKILL.md

scrape-with-pagination

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Extract repeated content from paginated lists, result tables, or infinite-scroll pages using browser-mcp observation and navigation tools. Use when the user asks to collect items across multiple pages.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for paginated search results, tables, product lists, article lists, or infinite-scroll pages where an API is not available.

    line 15
  2. Very specific:

    After each page, call wait_for for the list area or a short timeout, then capture another snapshot.

    line 32
  3. Very specific:

    Stop at max_pages, no next control, duplicate page content, or a user requested stopping condition.

    line 34
  4. Distinctive:

    If a CAPTCHA, login wall, or consent wall blocks scraping, stop and report it.

    line 40
  5. Distinctive:

    If selectors are unstable, return the current URL/title and a screenshot so the flow can be adjusted.

    line 41
  6. Very specific:

    Never bypass site controls outside browser automation.

    line 46
  7. Distinctive:

    Never scrape credentials, cookies, hidden auth tokens, or private profile data unless the user explicitly owns the session and requested …

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 With Pagination

When To Use

Use this skill for paginated search results, tables, product lists, article lists, or infinite-scroll pages where an API is not available.

Inputs

  • start_url
  • item_selector or text pattern that identifies each item.
  • next_selector or a description of the next-page control.
  • max_pages to prevent unbounded browsing.

Procedure

  1. navigate(start_url) and wait for the list area to load.
  2. Capture get_page_snapshot and identify repeated item fields.
  3. Extract only the requested fields. Avoid collecting unrelated page text.
  4. Move to the next page with click(next_selector) or scroll for infinite-scroll pages.
  5. After each page, call wait_for for the list area or a short timeout, then capture another snapshot.
  6. Stop at max_pages, no next control, duplicate page content, or a user requested stopping condition.
  7. Take a final screenshot when evidence is useful.

Failure Modes

  • If a CAPTCHA, login wall, or consent wall blocks scraping, stop and report it.
  • If selectors are unstable, return the current URL/title and a screenshot so the flow can be adjusted.

Never

  • Never bypass site controls outside browser automation.
  • Never scrape credentials, cookies, hidden auth tokens, or private profile data unless the user explicitly owns the session and requested those fields.

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.