Fill a CSV from product pages
Claude Codeurls.txt holds one product address per line. Claude writes the selectors to a file and runs extract, which returns the named fields and none of the page. Extract writes NDJSON, one page record per address and a report last, so Claude appends one CSV row per record and checks served against targets in the report.
- 1You type
The request in the Claude Code tab at the top, which asks for the three columns under 2 credits.
- 2Claude runs
cat > fields.json <<'EOF' {"title":"h1","price":".price_color","stock":".instock.availability"} EOF spider-agent extract --urls-from urls.txt --selectors fields.json --budget 2 - 3Comes back
The two lines in that tab: one
pagerecord with the three fields, then thereportwithservedat 1 for 1 target.