bs4.ProcessingInstruction.findAllPrevious

ProcessingInstruction.findAllPrevious(name=None, attrs={}, text=None, limit=None, **kwargs)

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