bs4.PageElement.find_next_sibling

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

Returns the closest sibling to this Tag that matches the given criteria and appears after this Tag in the document.