Skip to content

Python HTML parser to docx. Was made to parse Microsoft Threat Modeling Tool reports.

Notifications You must be signed in to change notification settings

sandevins/html-to-docx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

html-to-docx

This script transforms a HTML document into a properly formatted Word document (.docx). It currently supports the following.

  • Headers
  • Paragraphs
  • Embedded base64 images
  • Tables

Usage

To use the script, the dependencies must be installed.

pip install -r requirements.txt

Then you can use the script specifying the input file and the output file in that order.

python html_converter.py <PATH_TO_HTML_FILE> <PATH_TO_OUTPUT_FILE>

About

Python HTML parser to docx. Was made to parse Microsoft Threat Modeling Tool reports.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages