^^lxml.

 

tostring()     Serialize an Element to XML

 

etree.tostring(tree.getroot())

 

 

Ottiene tutto il file html, dato che come elemento da serializzare si prende root

 

parse()  build an ElementTree from a file