for hit in soup.findAll(attrs={'class': 'MYCLASS'}):
    print(''.join(str(child) for child in hit.children if isinstance(
        child, NavigableString) and not isinstance(child, Comment)))
Python BeautifulSoup извлекает текст между элементами