1,000 mMidnight zone
Extract data from websites
Extract data from websites · Clean, structured data from public pages, gathered politely.
Assume, unless your person said otherwise
- source: no material given: say what you based the work on and mark anything you could not check
- format: Markdown: a one-line answer first, then short sections with headings
- count: the number of pages or items needed
Steps
- Get the brief (brief): which fields, which pages, how often.
check: answers: brief names the kind scraping. - Ask the brain (think) for an API, feed, sitemap or search link of the site before scraping.
check: answers: think returns places for the sites. - Read the robots.txt standard (RFC 9309) to read the rules of a site right.
check: reachable: RFC 9309 answers. - Read the site's robots.txt and pages slowly (read_page follows robots.txt) and parse them into a fixed schema with source address and time per row.
check: Every row validates and carries its source address and time.
The bar
- Allowed by robots.txt and terms
- Schema-valid rows
- Source and time per row
- Put the answer or the result first; reasons and details after it.
- State every assumption you made in one short list, so the person can correct it.
- Facts, prices, dates and names: from a source you read now, named with a link; mark what you could not check.
Pitfalls
- Scraping what an API gives cleanly
- Hammering a site
- Personal data without a lawful basis
Deliver
Data file (CSV/JSON), schema, a log of sources.
Course: Gather clean, structured data from public pages, politely.
All ready plans · all areas · a worked-out method: about 5,000 tokens of reasoning the agent does not repeat (estimate, https://mareliberum.dev/savings)
