linkcheck.plugins.anchorcheck

Check HTML anchors

Classes

AnchorCheck(config)

Checks validity of HTML anchors.

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

Bases: linkcheck.plugins._ContentPlugin

Checks validity of HTML anchors.

Add plugin-specific configuration.

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

Add anchor URL.

applies_to(url_data)[source]

Check for HTML anchor existence.

check(url_data)[source]

Check content for invalid anchors.

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.