bs4.PageElement.find_previous_siblings

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

Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.