bs4.PageElement.find_all_previous

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

Returns all items that match the given criteria and appear before this Tag in the document.