Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2.7
# Thanks to haochi for developing the personalcapital pip
# https://github.com/haochi/personalcapital
# Most of the work on this script is based on the main file from that repo.
from datetime import datetime, timedelta
from personalcapital import PersonalCapital, RequireTwoFactorException, TwoFactorVerificationModeEnum
import getpass
import json