DillPickle is a Python program that generates a company diligence report for a list of companies located in towns.csv. The program uses OpenAI's GPT-3 language model to generate text for each section of the report. The generated text is then saved to a text file and converted to a Microsoft Word document using the python-docx library.
- Clone this repository
git clone https://github.com/nitebyte/DillPickle.git
-
Install the required modules:
openai
ebooklib
docx
requests
json
-
Get an OpenAI API key here.
-
Replace the
api_key
in thePR
function and theheaders
dictionary with your OpenAI API key. -
Run the program with the command:
python TripTeller.py
- Your completed reports(s) will be saved as a
.docx
file in the same directory.
- Add the names of the towns and states you want to generate reports for to towns.csv.
- Run DillPickle.py:
python DillPickle.py
- The program will generate a text file for each town in the format "Town Name State.txt".
- The text files will be converted to Microsoft Word documents in the format "Town Name State.docx".
Suppose towns.csv contains the following entries:
Boeing Co, Null
Weyland-Yutani, Null
Running DillPickle.py will generate the following files:
Boeing Co, Null.txt
Boeing Co, Null.docx
Weyland-Yutani, Null.txt
Weyland-Yutani, Null.docx
The text files will contain the generated text for each section of the company diligence report for the respective town. The Microsoft Word documents will contain the same text formatted as a book with a title page, copyright page, dedication page, and table of contents.
- OpenAI
- ebooklib
- csv
- requests
- json
- io
- python-docx
DillPickle is licensed under the MIT License. See LICENSE for more information.