Hi,
How can I print or get
Quote:
u'temp': 272.76,
u'temp_max': 274.15
u'temp_min': 271.15
|
from the this output/structure.
Code:
>>> pprint(r.json())
Code:
{u'base': u'stations',
u'clouds': {u'all': 90},
u'cod': 200,
u'coord': {u'lat': 43.7, u'lon': -79.42},
u'dt': 1479823800,
u'id': 6167865,
u'main': {u'humidity': 90,
u'pressure': 1024,
u'temp': 272.76,
u'temp_max': 274.15,
u'temp_min': 271.15},
u'name': u'Toronto',
u'sys': {u'country': u'CA',
u'id': 3721,
u'message': 0.1575,
u'sunrise': 1479817329,
u'sunset': 1479851146,
u'type': 1},
u'visibility': 14484,
u'weather': [{u'description': u'light snow',
u'icon': u'13d',
u'id': 600,
u'main': u'Snow'}],
u'wind': {u'deg': 290, u'speed': 4.1}}
and what is with 'u' every where in this structure ?
Thank you.