Here is the example of my 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 the "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 my text that is in a tag?