bs4.SoupStrainer

class bs4.SoupStrainer(name=None, attrs={}, text=None, **kwargs)[source]

Encapsulates a number of ways of matching a markup element (tag or text).

__init__(name=None, attrs={}, text=None, **kwargs)[source]

Methods

__init__([name, attrs, text])
search(markup)
searchTag([markup_name, markup_attrs])
search_tag([markup_name, markup_attrs])