SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .contents:
.contents
>>> for hit in soup.findAll(attrs={'class' : 'MYCLASS'}): ... print hit.contents[6].strip() ... THIS IS MY TEXT