How can I extract data from example HTML with beautifulsoup?
<Tag1>
<message code="able to extract text from here"/>
<text value="able to extract text that is here"/>
<htmlText><![CDATA[<p>some thing <lite>OR</lite>get exact data from here</p>]]></htmlText>
</Tag1>
I tried both .findall and .get_text, however I am not able to extract the text values from htmlText element.
Expected output:
some thing ORget exact data from here