#!/usr/bin/env python3 import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) from scicat import SciCat url = "https://dacat.psi.ch/api/v3/" cat = SciCat(url) props = cat.proposals nprops = len(props) print(f"got {nprops} proposals") for prop in props: # print(prop) pgroup = prop["ownerGroup"] pi_first = prop["pi_firstname"] pi_last = prop["pi_lastname"] first = prop["firstname"] last = prop["lastname"] print(pgroup, pi_first, pi_last, first, last)