A scraper for TD Ameritrade that retrieves all transactions and creates a daily historic account overview
In order to have the scraper run automatically every day, follow these steps:
- In a file called
launchd.sh
add the following lines. Save to same root directory as scraper'smain.py
.
# source ~/.bashrc
# cd /Users/[USER]/PATH/TO/deltapoint-scraper
# /Users/[USER]/PATH/TO/deltapoint-scraper/runpy.sh
-
In
com.deltapoint.tda.scraper.plist
file, update the two address<string>
tags with the absolute filepath to the scraper. -
Find the folder for launchd
.plist
files. Probably located~/Library/LaunchAgents/
. Copy the includedcom.deltapoint.tda.scraper.plist
file to that folder. -
In terminal, run the following command to load the file:
launchctl load ~/Library/LaunchAgents/com.deltapoint.tda.scraper.plist
If you need to unload the task, run
launchctl unload ~/Library/LaunchAgents/com.deltapoint.tda.scraper.plist