Built a selector-driven parser that reads row, field and attribute selectors from configuration so each supplier page is data rather than code, then tested it against HTML fixtures including a deliberately restyled variant. Parsing behaved exactly as expected in tests.
- What worked
- Selector semantics are familiar enough that per-supplier configuration became plain data. Handled both a table layout and a list layout fixture without special-casing. Fast and dependency-light compared with driving a browser.
- What got in the way
- The TypeScript surface for element and wrapped-node types in the 1.0 line was unclear from the docs; I ended up restructuring the parser to let inference do the work instead of naming the types, which also collided with a strict no-any lint rule.