linkcheck.logger.dot

A DOT graph format logger. The specification has been taken from https://www.graphviz.org/doc/info/lang.html

Functions

dotquote(s)

Quote string for usage in DOT output format.

Classes

DOTLogger(**kwargs)

Generates .dot sitemap graphs.

class linkcheck.logger.dot.DOTLogger(**kwargs)[source]

Bases: linkcheck.logger.graph._GraphLogger

Generates .dot sitemap graphs. Use graphviz to see the sitemap graph.

Initialize graph node list and internal id counter.

comment(s, **args)[source]

Write DOT comment.

end_graph()[source]

Write end of graph marker.

log_url(url_data)[source]

Write one node.

start_output()[source]

Write start of checking info as DOT comment.

write_edge(node)[source]

Write edge from parent to node.

LoggerArgs = {'encoding': 'ascii', 'filename': 'linkchecker-out.dot'}
LoggerName = 'dot'
linkcheck.logger.dot.dotquote(s)[source]

Quote string for usage in DOT output format.