bs4.BeautifulSoup.findNextSibling

BeautifulSoup.findNextSibling(name=None, attrs={}, text=None, **kwargs)

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