AI Knowledge & LogicProduct Sync Parsers

Example 1 (static XML, single feed)

Reference AI-product-sync parser. Single static XML feed with <Product> elements. Downloaded once on first call, then iter-parsed for memory-stable streaming. Demonstrates the simplest single-feed shape.

A reference parser for the aiGenerated product-sync provider — and a worked example of the simplest case: a single static XML feed you download once and stream <Product> elements end to end. If your feed is one file, start here; copy it as a starting point and adapt the field mapping to your feed.

Source shape: static-xml-single-feed

Runtime helper note. The _download helper uses a try/except that falls back to fetch_via_proxy() — a globally-injected function that routes the request through Octocom's HTTP proxy (a stable, dedicated egress IP). Use it when the origin blocks the default IP (symptoms: HTTPError 403, HTTPError 429, unexplained urlopen timeouts). Signature:

fetch_via_proxy(url, *, headers=None, timeout=60, method='GET', data=None) -> bytes