Skip to main content

batch

Extracts feeds from a list of pages concurrently, writing one file per URL.

newsworker batch [OPTIONS]
OptionAliasDefaultDescription
--urls-fileText file with one page URL per line.
--from-opmlOPML file; each outline's htmlUrl (or xmlUrl) is used as the page URL.
--output-dir-d.Directory for one output file per URL.
--format-fjsonOutput format (same set as extract).
--max-workers4Concurrent workers (thread pool, or aiohttp when --async).
--asyncfalseUse the optional aiohttp transport (newsworker[async]).
--manifestWrite a run manifest to this path.
--manifest-formatjsonManifest format: json or csv.
--failure-policystrictstrict or partial-success.
--no-cachefalseBypass caches for this run.
--config-c(default)Path to settings YAML.
--verbose-vfalseVerbose logging.
newsworker batch --urls-file urls.txt --output-dir out --format rss
newsworker batch --from-opml feeds.opml -d out -f json --max-workers 8
pip install 'newsworker[async]'
newsworker batch --urls-file urls.txt -d out --async

See batch manifests for artifact naming, record fields, and exit codes.