Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 663 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 663 Bytes

Python interface to Helsingin yliopisto

Collection of tools to collect information from various University of Helsinki data sources via their public (unofficial) APIs.

People search

This pulls data from the People Finder.

from py4hy import people

matti = people.search('Matti Nelimarkka')

print( "Call Matti", matti['mobileNumber'] )
print( "Matti works at", matti['organizations'][-1]['name'] )

csds_org_id = matti['organizations'][-1]['id']
csds = people.by_organisation( csds_org_id  )

for member in csds:
  print('Also working at CSCS:', member['firstnames'] + ' ' + member['lastname'])