This project utilizes ChatGPT and Selenium to extract invoice information, including the invoice number, date, and name of the person, from a given input. Users can customize the prompt by modifying the config.toml
file to suit their needs.
Follow these steps to set up and run the project:
- Python 3.x installed on your system.
- Chrome web browser installed.
- ChromeDriver installed for Selenium. You can download it from here.
- Clone this repository to your local machine.
-
Navigate to the project directory:
cd chatgpt_selenium
-
Install required packages
pip install -r requirements.txt
-
Place the files you want to process in the source folder.
-
Customize the ChatGPT prompt in the config.toml file according to your requirements.
-
Currently it extracts invoice number, date and name of the person, and the each file present in source folder will be placed in destination folder with pdf file name as <name_of_the_person><invoice_number>.
-
If any customization is required for your own usecase feel free to modify and raise the pr to merge as a feature.
python main.py
If you need to add/update any extra details to the prompt please go to the config.toml
and modify the prompt under project_settings.