dnet40/modules/dli-service-portal/branches/old_portal/objectTest.py @ 60276
1 | 39510 | sandro.lab | import json |
---|---|---|---|
2 | import urllib2 |
||
3 | 39462 | sandro.lab | |
4 | 39510 | sandro.lab | data = urllib2.urlopen("http://node0.d.dli.research-infrastructures.eu:8080/dli/mvc/ui/stats/getLastStats") |
5 | result = [] |
||
6 | d = json.loads(data.read()) |
||
7 | for k in d: |
||
8 | if 'Deduction' not in k['datasource']: |
||
9 | result.append(k) |
||
10 | print result |