This script parses the interests generated by the loans you invested in on the P2P platform Auxmoney. This data can then be used to be imported as CSV to Portfolio Performance. This project was inspired by https://github.com/ChrisRBe/PP-P2P-Parser.
Note that this project is not affiliated with Auxmoney or Portfolio Performance.
-
Make sure you have Python3, Firefox and Xvfb installed on your system. This project is designed to run on Linux.
-
Checkout the project
git clone https://github.com/StegSchreck/PP-Auxmoney-Parser.git && cd PP-Auxmoney-Parser
-
Install the requirements with pip for Python3
pip3 install -r requirements.txt
-
Install Geckodriver
- Use your system's package manager (if it contains Geckodriver)
- Arch Linux:
pacman -S geckodriver
- MacOS:
brew install geckodriver
- Arch Linux:
- Or execute
sudo ./InstallGeckodriver.sh
. For this you will need to have tar and wget installed.
- Use your system's package manager (if it contains Geckodriver)
To start the parser run the following command:
python3 main.py -u <your_auxmoney_username> -p <your_secret_password>
Upon completion, the script will print the name and location of the export file containing the data. You can start the import to Portfolio Performance using this file then.
-u
/ --username
: username for Auxmoney login
-p
/ --password
: password for Auxmoney login
--earliest
: earliest date of transactions to be considered in the ISO format (e.g. 2019-12-31
for 31st december 2019)
--latest
: latest date of transactions to be considered in the ISO format (e.g. 2019-12-31
for 31st december 2019)
-d
/ --destination
: destination folder for the resulting CSV file containing the parsed data
-v
/ --verbose
: increase output verbosity
-x
/ --show_browser
: show the browser doing his work (this might help for debugging)
-h
/ --help
: Display the help, including all possible parameter options
If you recently updated your Firefox, you might encounter the following exception during the login attempt of the parser:
selenium.common.exceptions.WebDriverException: Message: Expected [object Undefined] undefined to be a string
This can be fixed by installing the latest version of Mozilla's Geckodriver by running again the Install Geckodriver command mentioned above.
This can have multiple explanations. One is, that you are using a password which starts or ends with a space character. This script is currently not capable of dealing with that. If your credentials have a space character in the middle though, it will work fine.