# Extract Table Pagination

> Extract structured data from an HTML table, optionally walking through paginated views. Returns a list of row dicts keyed by header cells. The demo skill (used to monitor conference paper lists).

- **Type:** Skill
- **Install:** `agentstack add skill-bettyguo-browser-skills-extract-table-pagination`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [bettyguo](https://agentstack.voostack.com/s/bettyguo)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [bettyguo](https://github.com/bettyguo)
- **Source:** https://github.com/bettyguo/browser-skills/tree/main/skills/extract-table-pagination

## Install

```sh
agentstack add skill-bettyguo-browser-skills-extract-table-pagination
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Extract Table Pagination

## When to invoke

When the user task involves reading structured data from an HTML table — the page either shows a `` element, or a `role="table"` ARIA structure. If the table is paginated, the skill walks pages via a "next" link/button until either the next link is absent, the row count stops growing, or a configurable `max_pages` is reached.

The matcher gives this a high score when the DOM summary contains ``-grid layout (card grid, masonry, etc.) — use the future `extract-card-grid` skill, or vision fallback.
- The table is virtualized (only renders visible rows on scroll, e.g., AG Grid, MUI DataGrid). Use `handle-infinite-scroll` with row-extraction inside the scroll loop instead.
- The "table" is actually a layout `` from 2003-era HTML (no ``, no semantic structure). The extractor will produce noisy results; better to extract by text-selector and structure manually.

## Known failures

- **Virtualized tables (~5% of modern web apps):** only the visible rows are in the DOM at any time. The extractor returns just those. Workaround: combine with `handle-infinite-scroll` or scroll-and-extract.
- **Tables with rowspan/colspan (~3%):** the naive header-zip extractor mis-aligns columns. Vision fallback handles for now; v0.2.0 will support `extract_table mode="rowspan-aware"`.
- **No ``, no `` (~5% of legacy sites):** the extractor uses the first row as headers; if that row is data, the first record is lost. Workaround: pass `headers=[...]` arg (planned v0.2.0).
- **Server-side-rendered "infinite scroll" disguised as pagination:** the next-page link returns the SAME rows on click. Detection logic in `pagination-next-page` aborts when row hashes match.

## Example usage

```
Agent task: "Get the latest cs.AI papers from arxiv."
→ invoke_skill("verify-page-loaded") → success
→ invoke_skill("extract-table-pagination") → success, $rows_page_1 = [{title, authors, abstract}, ...]
→ agent inspects $rows_page_1 and reports
```

## Related skills

- `verify-page-loaded` — run first; tables on slow-rendering pages need readiness check
- `pagination-next-page` — chain to walk multiple pages
- `handle-infinite-scroll` — alternative when content lazy-loads instead of paginating
- `dismiss-cookie-banner` — usually run before any extraction

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [bettyguo](https://github.com/bettyguo)
- **Source:** [bettyguo/browser-skills](https://github.com/bettyguo/browser-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-bettyguo-browser-skills-extract-table-pagination
- Seller: https://agentstack.voostack.com/s/bettyguo
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
