0
Currently I use this expression to extract everything below the tag <b>
until I find another tag <b>
:
blocks = re.findall(r'<b>.+?<b>', str(element))
How can I do the same thing using Beautiful Soup?
NOTE: the HTML file is unstructured, and I get it messy in several different ways, so I wanted something that worked for all cases.