Table & List Scraper — CSS Selector to JSON
Pricing
Pay per usage
Table & List Scraper — CSS Selector to JSON
Turn any HTML page into clean JSON with CSS selectors. Follows "next page" links automatically, no browser needed — runs in seconds and costs a fraction of a Playwright scraper. Pay only per item scraped.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Wei Yihao
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Turn any HTML table or repeated list into clean JSON. Point it at a URL, give it a CSS selector, get rows back — with pagination handled for you.
Built for the boring 80% of scraping work: price tables, product listings, directory pages, league tables, "results per page" grids.
Input
| Field | Type | Default | Notes |
|---|---|---|---|
startUrls | array | [{"url":"https://books.toscrape.com/"}] | One or more pages to open |
itemSelector | string | table tr | CSS selector for each row/item |
fields | object | auto | selector or selector@attribute; omit to return every cell as col_1…col_n |
pagination.nextSelector | string | null | CSS selector of the "next page" link |
pagination.maxPages | integer | 1 | Hard stop |
maxItems | integer | 100 | Hard stop across all pages |
Field syntax: "td:nth-child(2)" → text, "a@href" → attribute, "a@title" → attribute.
Output
{"title": "A Light in the Attic","price": "£51.77","link": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","stock": "In stock","_sourceUrl": "https://books.toscrape.com/","_page": 1}
Every record carries _sourceUrl and _page, so a 2,000-row pull stays traceable.
One-call example
curl -X POST "https://api.apify.com/v2/acts/ZD-l2~table-list-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"startUrls": [{"url": "https://books.toscrape.com/"}],"itemSelector": "article.product_pod","fields": {"title": "h3 a@title", "price": ".price_color", "link": "h3 a@href"},"pagination": {"nextSelector": "li.next a@href", "maxPages": 3}}'
Reference run: 40 rows in ~11 s, $0.0004 of compute.
Limits
- Static HTML only — no JavaScript rendering. For SPAs use a browser-based Actor.
- One CSS selector per field; no XPath.
- Respect the target site's robots.txt and terms. You are responsible for what you scrape.
Pricing
Pay per result — charged per scraped item, not per minute. A failed page costs nothing.
