how to get the source of html in lxml?

contro opinion contropinion at
Mon Dec 31 07:32:01 CET 2012

import urllibimport lxml.html
body=root.xpath('//div[@class="articalContent  "]')[0]print body.text_content()

When i run the code, what i get is the text content ,how can i get the html
source code of it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list