Source code for the tutorial at StackAbuse.com
You can read the article on StackAbuse
To follow up with the examples, you can either use file-sample_100kB.docx docx file in this repository, or download it from file-examples.com.
HOW TO USE THIS CODE:
-
Create the project folder:
$ mkdir MammothTutorial && cd MammothTutorial -
Create a virtual environment:
$ python3 -m venv venv -
Activate it:
Linux:$ source venv/bin/activateWindows:Scripts\activate.bat -
Clone this repository with
git clone -
Install requirements:
$ pip3 install -r requirements.txt -
(Optional) Replace
input_filename(in theconverter.py) with the path of your docx file -
Run the
converter.py
$ python3 converter.py