python3 jtest.py
This commit is contained in:
parent
0aab883d96
commit
794c4f9115
|
|
@ -0,0 +1,33 @@
|
|||
import json
|
||||
import requests
|
||||
import time
|
||||
|
||||
response = requests.get("https://api.aprs.fi/api/get?name=UA1ZKH-14&what=wx&apikey=68402.IISZsi6NCLoVy3n&format=json")
|
||||
|
||||
|
||||
#print(response.json()) # True
|
||||
|
||||
jsonData = json.dumps(response.json())
|
||||
|
||||
#print(jsonData)
|
||||
|
||||
|
||||
dictData = json.loads(jsonData)
|
||||
|
||||
|
||||
|
||||
#print(dictData["command"])
|
||||
|
||||
bb = (dictData["entries"])
|
||||
|
||||
#for name in bb['entries']['name']:
|
||||
# print(name)
|
||||
|
||||
|
||||
|
||||
#for i in bb: print(*i,end=" ")
|
||||
|
||||
|
||||
print(bb)
|
||||
|
||||
time.sleep(10)
|
||||
Loading…
Reference in New Issue