Parses PDF invoices from the brokerage Trade Republic (for PDF documents in German).
To keep track of my investing activities, I had to manually extract properties of my trades. After a while, I made some mistakes and archived the files with a wrong naming convention. That's when I decided to write a script. Furthermore, the popular Software Portfolio Performance can't parse trade documents (PDFs) provided by Trade Republic automatically. As a workaround a .csv import can be done, however.
This python script checks a specified folder for trade documents (e.g., invoices or dividend payments), parses them, renames and moves them to a specified folder and saves a .csv table of all parsed files for easy import into Portfolio Performance. While the script is parsing the invoices, it prints all properties from that invoice to the terminal as well, such as underlying security, amount of shares, market price, etc., in case a manual import is desired.
- Python 3.7 or larger
- pipenv
Clone this repository
git clone git@github.com:MarcBuch/TR-PDF-Parser.gitInstall required python modules
pip3 install pdfminer.six # not to be confused with pdfminerEdit the source and destination folder inside main.py
sourceFolder = '/downloads/'
destinationFolder = '/Wertpapierabrechnungen/'Install the dependencies
pipenv installStart the script...
./start.sh... or run in python directly
python3 main.pyThere are no screenshots due to privacy concerns.