Easily mail merge script that takes input from a csv files and merges it into the provided docx file.
Using docx-mailmerge & docx2pdf, this script takes data provided in the csv and merges it with the 'Template_File.docx' using the specifed MergeFields provided in the docx file.
The script currently supports upto 5 fields to merge.
- Clone repo:
git clone https://github.com/9akashnp8/olx_web_scraper.git
- Create a virtual enviroment for the repo & activate it
python -m venv venv
cd venv
Scripts\activate.bat
- Install all the required modules in the virtual env
pip install -r requirements.txt
-
Add data in csv to merge & modify template docx as per required.
-
Run the script
python merger.py