20 lines
287 B
Python
Executable File
20 lines
287 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import urllib3
|
|
|
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
|
|
|
|
from scilog import SciCat
|
|
|
|
url = "https://dacat.psi.ch/api/v3/"
|
|
cat = SciCat(url)
|
|
|
|
props = cat.proposals
|
|
nprops = len(props)
|
|
print(f"got {nprops} proposals")
|
|
print(props[0])
|
|
|
|
|
|
|