Created
February 20, 2017 01:17
-
-
Save shaposhnikoff/e09842b9c2fbe501b2b3ed69f666012f to your computer and use it in GitHub Desktop.
Exchange rate as of the current date
This file contains hidden or 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
| #!/usr/bin/python | |
| import requests | |
| rates = requests.get("https://bank.gov.ua/NBUStatService/v1/statdirectory/exchange?json").json() | |
| for i in range(len(rates)): | |
| print ((rates[i]["rate"] ,rates[i]["txt"])) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment