Some html code contains some dt tags like follows:
<dt>PLZ:</dt>
<dd>
8047
</dd>
I want to find the text in the dd tag following the dt tag with the text PLZ:. According to documentation I am trying the following:
number = BeautifulSoup(text).find("dt",text="PLZ:").findNextSiblings("dd")
with text the above string, but all I get is an empty list instead the number I am looking for (as string of course). Maybe I misunderstand the documentation?
so just try:
or if you find with findNext try: