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