bs4.PageElement.find_parent

PageElement.find_parent(name=None, attrs={}, **kwargs)[source]

Returns the closest parent of this Tag that matches the given criteria.