Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Created February 20, 2017 01:17
Show Gist options
  • Select an option

  • Save shaposhnikoff/e09842b9c2fbe501b2b3ed69f666012f to your computer and use it in GitHub Desktop.

Select an option

Save shaposhnikoff/e09842b9c2fbe501b2b3ed69f666012f to your computer and use it in GitHub Desktop.
Exchange rate as of the current date
#!/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