txt = """<foobar>We have
       <![CDATA[some data here]]>
       and more.
       </foobar>"""
soup = BeautifulSoup.BeautifulSoup(txt)
for cd in soup.findAll(text=True):
    if isinstance(cd, BeautifulSoup.CData):
        pass
Как я могу получить CData из BeautifulSoup