Example 2 (static XML, multiple feeds)
Reference AI-product-sync parser. Three static XML feeds (products + Greek URLs + reviews). Streams the main feed via ET.iterparse; review and Greek-URL maps are built once into module-level dicts and looked up per product. Conditional metafields are emitted via a (label, key) tuple list.
A reference parser for the aiGenerated product-sync provider — and a worked example of a source split across multiple static XML feeds (here: a main product feed plus side feeds for reviews and Greek URLs, joined by SKU). Copy it as a starting point and adapt the joins and field mapping to your feeds.
Source shape: static-xml-multiple-feeds
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