Skip to content

Instantly share code, notes, and snippets.

@boochow
Created October 21, 2017 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boochow/3569fcf3cbdd883ad90bb6b873487845 to your computer and use it in GitHub Desktop.
Save boochow/3569fcf3cbdd883ad90bb6b873487845 to your computer and use it in GitHub Desktop.
def main():
import urequests
r = urequests.get('http://api.fixer.io/latest?base=USD&symbols=JPY')
j = r.json()
print(j["date"])
print("JPY/" + j["base"] + ": " + str(j["rates"]["JPY"]))
@boochow
Copy link
Author

boochow commented Oct 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment