Message409407
I'm thinking of this an a replacement example:
>>> import json
>>> import urllib.request
>>> url = "http://worldtimeapi.org/api/timezone/America/Los_Angeles"
>>> with urllib.request.urlopen(url) as response:
... timeinfo = json.load(response)
...
>>> print(timeinfo['datetime'])
2021-12-30T21:32:08.588278-08:00 |
|
Date |
User |
Action |
Args |
2021-12-31 05:34:50 | rhettinger | set | recipients:
+ rhettinger, docs@python, vivekvashist |
2021-12-31 05:34:50 | rhettinger | set | messageid: <1640928890.22.0.220225923359.issue46079@roundup.psfhosted.org> |
2021-12-31 05:34:50 | rhettinger | link | issue46079 messages |
2021-12-31 05:34:50 | rhettinger | create | |
|