Name

anchor_bgn

Synopsis

                        h.anchor_bgn(href,name,type)

Called for each <a> tag. href, name, and type are the string values of the tag’s attributes with the same names. HTMLParser’s implementation of anchor_bgn maintains a list of outgoing hyperlinks (i.e., href arguments of method s .anchor_bgn) in an instance attribute named s .anchorlist.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.