here is an example of the html I am trying to extract from:
<div class="small subtle link">
<a href="https://example.com" target="_blank" nofollow >Example</a>
This text!
</div>
I want to grab "This text!" but I keep getting "Example" with it when I do this
myText=soup.findAll('div',{'class':re.compile('small subtle link')})
if myText:
extractedText=myText.text.strip()
How do I leave out the text that is in the a tag?