ParseSitemapOptions
Index
Properties
optionalemitNestedSitemaps
optionalmaxDepth
Maximum depth of nested sitemaps to follow.
optionalnestedSitemapFilter
Optional filter for nested sitemap URLs discovered in sitemap index files.
Called with the URL of each child sitemap before it is fetched.
Return true to include the sitemap, false to skip it.
If not provided, all nested sitemaps are followed.
Type declaration
Parameters
sitemapUrl: string
Returns boolean
optionalnetworkTimeouts
Network timeouts for sitemap fetching. See Got documentation for more details.
optionalreportNetworkErrors
If true, the parser will log a warning if it fails to fetch a sitemap due to a network error
optionalsitemapRetries
Number of retries for fetching sitemaps. The counter resets for each nested sitemap.
If set to
true, elements referring to other sitemaps will be emitted as special objects withoriginSitemapUrlset tonull.