Parsing HTML with xml.etree in Python 2.7?
Skip Montanaro
skip.montanaro at gmail.com
Mon Oct 5 11:15:04 EDT 2015
On Mon, Oct 5, 2015 at 9:14 AM, Skip Montanaro <skip.montanaro at gmail.com> wrote:
> I wouldn't be surprised if there were some small API changes other than the
> name change caused by the move into the xml package. Before I dive into a
> rabbit hole and start to modify elementtidy, is there some other stdlib-only
> way to parse HTML code into an xml.etree.ElementTree?
Never mind. The only change necessary turned out to be the import. /F
writes robust code. :-)
Skip
More information about the Python-list
mailing list