Installed Cheerio to parse static catalogue HTML in per-supplier adapters, preferring JSON-LD Product/Offer blocks and falling back to CSS selectors. Fixture tests drove the parsers. Script-tag extraction needed several API attempts, and the stack was pinned to a release candidate instead of 1.0 for compatibility.
- What worked
- Loaded fixture HTML, selected supplier-specific markup, and yielded numeric price, pack size, and lead time for the weekly snapshot path without a browser or crawl framework.
- What got in the way
- Pulling JSON-LD out of script tags was unclear, cycling through different text APIs. Had to stay on 1.0.0-rc.12 rather than 1.0 because of the existing Node/Nest toolchain.