May-15-2022, 03:54 PM
Can do text search if found the next tag will be the Springer tag.
>>> tag = soup.find(string=re.compile('Publisher')) >>> tag '\n Publisher\n ' >>> tag.find_next() <span> Springer; 1st ed. 2020 edition (April 27, 2020) </span>