Code: Select all
$ python3 -q
>>> from requests import get
>>> r = get('https://assign1.foldingathome.org/api/project/summary').json()
>>> [p for p in r if p['id'] == 18224]
[{'id': 18224, 'title': 'p18224', 'ws': '158.130.118.25', 'public': True, 'beta': False, 'type': '0x23', 'credit': 206790, 'bonus': 0.75, 'timeout': 172800, 'deadline': 432000, 'atoms': 383200, 'contact': 'justinjm'}]
>>> [p for p in r if p['id'] == 18225]
[]
>>> [p for p in r if p['id'] == 18226]
[]