Created
December 4, 2018 15:10
-
-
Save lumisota/86663e0020825332075b67dd8d889f1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on https://github.com/GiacomoLaw/Python-scripts/blob/master/monzoinvest.py | |
import requests | |
url = "https://api.monzo.com/crowdfunding-investment/total" | |
data = requests.get(url).json() | |
plainnum = int(str(data["invested_amount"])[:-4]) | |
number = "{:,}".format(int(plainnum)) | |
print("£",number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment