bs4.ProcessingInstruction.find_next

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

Returns the first item that matches the given criteria and appears after this Tag in the document.