# credit to the Stack Overflow user in the source link from htmldocx import HtmlToDocx new_parser = HtmlToDocx() new_parser.parse_html_file("html_filename", "docx_filename") # Files extensions not needed, but tolerated