linkcheck.plugins.anchorcheck

Check HTML anchors

Classes

AnchorCheck(config)

Checks validity of HTML anchors.

UrlAnchorCheck()

Class to thread-safely handle collecting anchors for a URL

class linkcheck.plugins.anchorcheck.AnchorCheck(config)[source]

Bases: _ContentPlugin

Checks validity of HTML anchors.

Add plugin-specific configuration.

applies_to(url_data)[source]

Check for HTML anchor existence.

check(url_data)[source]

Check content for invalid anchors.

class linkcheck.plugins.anchorcheck.UrlAnchorCheck[source]

Bases: object

Class to thread-safely handle collecting anchors for a URL

add_anchor(url, line, column, name, base)[source]

Add anchor URL.

check_anchor(url_data)[source]

If URL is valid, parseable and has an anchor, check it. A warning is logged and True is returned if the anchor is not found.