magic-html is a Python library designed to simplify the extraction of main content areas from HTML. It provides a toolkit that allows users to easily extract main content, regardless of the complexity of the HTML structure or the simplicity of the webpage. This library aims to offer users a convenient and efficient interface. It supports multi-modal extraction, various layout extractors including articles, forums, and WeChat articles, and also supports the extraction and conversion of LaTeX formulas.