Extract expenses from PDF statements for a specific vendor and write them to Google Sheets using GCP and Python.
- Python: Ensure you have Python installed (version 3.x recommended).
- Python Libraries: Install necessary libraries. You can do this using pip:
pip3 install -r requirements.txt
- Go to the Google Developers Console.
- Create a new project.
- Search for the Google Sheets API and enable it.
- Create credentials for a Service Account.
- Download the JSON file.
- Move the downloaded JSON file to your project directory and rename it to
your_credentials.json
.
-
Place your PDF statements in the project directory.
-
Run the script:
python3 main.py
-
Check your Google Sheets for the extracted expenses.
- π§Ύ Efficient extraction of transactional data from PDF statements.
- π Data neatly written to individual Google Sheets per statement.
- π° Provides a total sum of all your transactions.
Want to contribute? π Fork the repository, make your changes, and send in a pull request. All contributions are heartily welcome!