Skip to main content

Parsing specs

analyze runs the dynamic heuristics once and distils them into a portable YAML parsing spec. Feeding that spec back into extract --spec skips discovery and runs deterministic selectors.

newsworker analyze "https://example.com/news" -o example.yaml
newsworker extract "https://example.com/news" --spec example.yaml --format rss
newsworker spec validate example.yaml

The same YAML shape is used inside site bridges under a top-level spec: key. See the full spec format and plugins and bridges.