goquery-parsing
Installation
SKILL.md
goquery-parsing
Generate Go parsers from HTML snapshots. The goal is code that extracts the right data reliably and keeps working when a page gets restyled or minor markup is shuffled.
For the full API method signatures, see references/api.md.
Workflow
- Read the HTML — scan the full snapshot before writing a single selector
- Name the target data — define the Go struct that will hold the output
- Pick stable selectors — see the hierarchy below
- Write the parser — follow the code structure below
- Verify — compile, test against the snapshot, check edge cases