Skip to main content

explain

Shows why a page yields the items it does: every repeated group of dates on the page and which one was chosen, the strategies that were tried, the spec a fresh analysis would write, the resulting items, and plain-language hints when the result looks wrong.

newsworker explain URL [OPTIONS]
newsworker explain --file page.html --base-url https://example.com/news [OPTIONS]
OptionAliasDefaultDescription
--format-ftexttext, html (standalone report) or json.
--output-o(stdout)Write the report to a file.
--file / --base-url—Explain a saved page (- reads stdin).
--renderfalseRender with the browser extra first.
--undatedfalseAllow the undated-listing fallback.
--no-cachefalseIgnore cached specs and pages.
--user-agent, --ignore-robots, --config, --verboseAs for extract.
newsworker explain "https://example.com/news" -f html -o report.html

A listing split into sibling wrappers (one per hour or day) is shown as one date group for the wrappers' parent, with the number of wrappers that hold items: * 50 dates in 11 groups, 6 linked, 6 titled /html/body/main/div[1]/div/div[1]. JSON and HTML reports carry the same number as groups.

Each date group also shows the day/month order its numeric dates were read in (dmy or mdy) and why: a date such as 13/05/2022 or 05/13/2022 that can only be read one way, or the page locale when every date is ambiguous. A date order line names the order used for the extracted items.

Hints cover the common failure modes: no repeated dates (try --render or --undated), a chosen date group without links (a calendar or archive menu), items that all link to the listing page, undated items, a cached spec that was rebuilt because the layout changed, and items taken from JSON-LD or the undated fallback.

The HTML report escapes all page content and blocks scripts with a Content-Security-Policy, so it is safe to open for any page.