this is only a suggestion, feel free to implement it another way
from knesset_data.dataservice.persons import PersonPosition
for person_position in PersonPosition.get_all():
peson_position.PersonID
person_position.CommitteeID
# all other fields..
# mk = Member of Knesset
# this method should return the standard member id, like:
# 901 = איציק שמולי
person_position.get_mk_id()
# given person_position.CommitteeId
# fetch and return a dataservice.committees.Committee object
person_position.get_committee()
expected outcome
this is only a suggestion, feel free to implement it another way
relevant documentation and details: