13 lines
277 B
Python
13 lines
277 B
Python
__author__ = 'asc'
|
|
|
|
import json
|
|
from urllib import request
|
|
|
|
|
|
req = request.Request("http://home.ascorrea.com:5010/retrieve-report")
|
|
# req.add_header('Content-Type', 'application/json')
|
|
response = request.urlopen(req)
|
|
r = response.read()
|
|
json.loads(r.decode()).get('data')
|
|
pass
|