Skip to content

Instantly share code, notes, and snippets.

@nikhilweee
nikhilweee / statement-to-excel.py
Last active June 11, 2024 10:23
Convert HDFC Bank Credit Card statements from PDF to Excel
# This script is designed to convert bank statements from pdf to excel.
#
# It has been tweaked on HDFC Bank Credit Card statements,
# but in theory you can use it on any PDF document.
#
# The script depends on camelot-py,
# which can be installed using pip
#
# pip install "camelot-py[cv]"
Allow executable to run sudo w/o password prompt
1. Execute:
sudo visudo
2. Add line:
<username> ALL=NOPASSWD:/path/to/executable
Apt
Auto purge:
apt autoremove --purge