Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

xml.etree.ElementTree

from html.parser import HTMLParser

https://www.crummy.com/software/BeautifulSoup/bs4/doc/

https://github.com/lxml/lxml

xml.etree.ElementTree is for parsing strict XML text. Do NOT use xml.etree.ElementTree to parse HTML string.