feed-lint

v0.1.3
io.github.mscode-pl/feed-lint Checked 5 hours ago Published 2 days ago

Lint Google Merchant and Ceneo product feeds: missing fields, prices, GTINs, duplicate ids, links.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lint_feed Lint a product feed

Check a Google Merchant (RSS or Atom) or Ceneo XML product feed and list problems grouped by rule, with counts, line numbers and product ids: missing fields, wrong prices, invalid GTINs, duplicate ids, bad categories and more. Pass a file path, an http(s) URL or the XML itself. With none of them, lints the feeds from feed-lint.config.json. Follow up with explain_rule for a fix.

ParameterTypeDescription
check_urlsbooleanAlso request product links and images (up to 200 unique URLs). Slow; use when asked to check links.
ignorearrayRules to skip, e.g. ["google/identifiers"].
pathstringFeed file relative to the working directory, e.g. "public/feeds/google.xml". Use one of path, url or xml.
urlstringFeed URL, e.g. "https://shop.example/feed/google.xml".
xmlstringFeed XML as text, for small feeds or a single product.

explain_rule Explain a feed rule

Explain one rule reported by lint_feed: what it checks, how severe it is, how to fix it and where the specification says so.

ParameterTypeDescription
rule *stringRule id from lint_feed, e.g. "google/gtin-checksum" or "ceneo/avail-value".