Very simple Python script for querying the US Treasury savings bond calculator website in bulk.
- Use Python 3+
brew install chromedriver
to install headless Chrome driverpip install selenium
to install the Python bindings for the headless driver- Build a CSV file of bond information of the form
FACE_VALUE,ISSUE_DATE
where ISSUE_DATE is in MMYYYY format (e.g.50,051992
for a $50 bond issued in May, 1992) - Run
chromedriver
to start the driver python calculate.py $YOUR_CSV_FILE
to submit all bond information to the website- Switch to the new Chrome process started by the script for information about each bond and totals