summaryrefslogtreecommitdiff
path: root/RatesWidget/rates.py
blob: 9a124626c0d958b81a901b2788ab50acaed7a25c (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python

import requests
import json

r = requests.get("http://api.fixer.io/latest?symbols=CHF,EUR")
resp = json.loads(r.content)

print resp["rates"]["CHF"]