bs4.BeautifulSoup.handle_starttag

BeautifulSoup.handle_starttag(name, namespace, nsprefix, attrs)[source]

Push a start tag on to the stack.

If this method returns None, the tag was rejected by the SoupStrainer. You should proceed as if the tag had not occured in the document. For instance, if this was a self-closing tag, don’t call handle_endtag.