linkcheck.logger.sitemapxml

A sitemap XML logger.

Classes

SitemapXmlLogger(**kwargs)

Sitemap XML output according to https://www.sitemaps.org/protocol.html

class linkcheck.logger.sitemapxml.SitemapXmlLogger(**kwargs)[source]

Bases: _XMLLogger

Sitemap XML output according to https://www.sitemaps.org/protocol.html

Initialize graph node list and internal id counter.

end_output(**kwargs)[source]

Write XML end tag.

log_filter_url(url_data, do_print)[source]

Update accounting data and determine if URL should be included in the sitemap.

log_url(url_data, priority=None)[source]

Log URL data in sitemap format.

start_output()[source]

Write start of checking info as xml comment.

LoggerArgs = {'encoding': 'utf-8', 'filename': 'linkchecker-out.sitemap.xml'}
LoggerName = 'sitemap'