htmllib.HTMLParser.anchor_bgn

HTMLParser.anchor_bgn(href, name, type)[source]

This method is called at the start of an anchor region.

The arguments correspond to the attributes of the <A> tag with the same names. The default implementation maintains a list of hyperlinks (defined by the HREF attribute for <A> tags) within the document. The list of hyperlinks is available as the data attribute anchorlist.