Skip to main content

scan

Scans a page for already-published RSS/Atom/JSON Feed declarations (via autodiscovery links, feed icons, link heuristics, WebSub, and optional sitemaps) and reports them.

newsworker scan URL [OPTIONS]
OptionAliasDefaultDescription
--format-fjsonOutput format: json, rss, atom, csv, opml.
--sitemapfalseAlso discover feed URLs from the site's /sitemap.xml.
--no-verifyfalseSkip fetching and parsing candidate feeds.
--max-workers8Candidate feeds verified at the same time.
--output-o(stdout)Write the result to a file.
--fail-on-emptyfalseExit with status 3 when no feeds are found. An unreachable page always exits with 1.
--ignore-robotsfalseFetch even when robots.txt disallows it.
--crawlfalseAlso follow same-site links and look for feeds on those pages.
--max-pages50Pages a crawl fetches at most. Needs --crawl.
--max-depth2Link steps a crawl goes from the URL. Needs --crawl.
--listingsfalseAlso report pages that extraction reads as dated news listings (feedtype: html).
--config-c(default)Settings YAML file.
--verbose-vfalseVerbose logging.
newsworker scan "https://www.dta.gov.au/news/"
newsworker scan "https://www.dta.gov.au/news/" -f opml -o feeds.opml
newsworker scan "https://example.com" --sitemap --format json
newsworker scan "https://example.com" --crawl --listings
newsworker scan "https://example.com" --crawl --max-pages 20 -f csv

scan verifies every candidate feed by parsing it unless --no-verify is set. feedtype, num_entries, and language metadata are included where available.

With --crawl, each candidate lists the pages it was found on (found_on, found_on_count) and the JSON result has a crawl summary; CSV gets a last found_on column. --max-pages and --max-depth without --crawl exit with status 2. See crawling a site.

See discovery and output formats.