diff --git a/members/people.json b/members/people.json index 9265cf869..aef75356b 100644 --- a/members/people.json +++ b/members/people.json @@ -644320,6 +644320,726 @@ "post_id": "uk.org.publicwhip/cons/552", "start_date": "2017-02-24", "start_reason": "by_election" + }, + { + "id": "uk.org.publicwhip/member/90627", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/13814", + "post_id": "uk.org.publicwhip/cons/35-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90628", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25555", + "post_id": "uk.org.publicwhip/cons/35-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90629", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25451", + "post_id": "uk.org.publicwhip/cons/35-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90630", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/24994", + "post_id": "uk.org.publicwhip/cons/35-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90631", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13845", + "post_id": "uk.org.publicwhip/cons/35-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90632", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13809", + "post_id": "uk.org.publicwhip/cons/36-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90633", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13913", + "post_id": "uk.org.publicwhip/cons/36-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90634", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25571", + "post_id": "uk.org.publicwhip/cons/36-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90635", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25124", + "post_id": "uk.org.publicwhip/cons/36-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90636", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25011", + "post_id": "uk.org.publicwhip/cons/36-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90637", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25256", + "post_id": "uk.org.publicwhip/cons/37-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90638", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25447", + "post_id": "uk.org.publicwhip/cons/37-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90639", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/25553", + "post_id": "uk.org.publicwhip/cons/37-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90640", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25577", + "post_id": "uk.org.publicwhip/cons/37-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90641", + "on_behalf_of_id": "green", + "person_id": "uk.org.publicwhip/person/25548", + "post_id": "uk.org.publicwhip/cons/37-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90642", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25598", + "post_id": "uk.org.publicwhip/cons/38-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90643", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13816", + "post_id": "uk.org.publicwhip/cons/38-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90644", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13818", + "post_id": "uk.org.publicwhip/cons/38-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90645", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25020", + "post_id": "uk.org.publicwhip/cons/38-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90646", + "on_behalf_of_id": "people-before-profit-alliance", + "person_id": "uk.org.publicwhip/person/25557", + "post_id": "uk.org.publicwhip/cons/38-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90647", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13801", + "post_id": "uk.org.publicwhip/cons/192-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90648", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/13887", + "post_id": "uk.org.publicwhip/cons/192-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90649", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/25126", + "post_id": "uk.org.publicwhip/cons/192-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90650", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25450", + "post_id": "uk.org.publicwhip/cons/192-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90651", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25602", + "post_id": "uk.org.publicwhip/cons/192-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90652", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25546", + "post_id": "uk.org.publicwhip/cons/197-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90653", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25551", + "post_id": "uk.org.publicwhip/cons/197-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90654", + "on_behalf_of_id": "independent", + "person_id": "uk.org.publicwhip/person/25226", + "post_id": "uk.org.publicwhip/cons/197-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90655", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13858", + "post_id": "uk.org.publicwhip/cons/197-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90656", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/13772", + "post_id": "uk.org.publicwhip/cons/197-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90657", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13790", + "post_id": "uk.org.publicwhip/cons/231-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90658", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/10913", + "post_id": "uk.org.publicwhip/cons/231-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90659", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25603", + "post_id": "uk.org.publicwhip/cons/231-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90660", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25135", + "post_id": "uk.org.publicwhip/cons/231-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90661", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25549", + "post_id": "uk.org.publicwhip/cons/231-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90662", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25604", + "post_id": "uk.org.publicwhip/cons/235-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90663", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25130", + "post_id": "uk.org.publicwhip/cons/235-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90664", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13821", + "post_id": "uk.org.publicwhip/cons/235-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90665", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25143", + "post_id": "uk.org.publicwhip/cons/235-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90666", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25267", + "post_id": "uk.org.publicwhip/cons/235-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90667", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/24972", + "post_id": "uk.org.publicwhip/cons/325-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90668", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25556", + "post_id": "uk.org.publicwhip/cons/325-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90669", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/13903", + "post_id": "uk.org.publicwhip/cons/325-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90670", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13853", + "post_id": "uk.org.publicwhip/cons/325-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90671", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25605", + "post_id": "uk.org.publicwhip/cons/325-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90672", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13915", + "post_id": "uk.org.publicwhip/cons/375-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90673", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25554", + "post_id": "uk.org.publicwhip/cons/375-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90674", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25180", + "post_id": "uk.org.publicwhip/cons/375-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90675", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25559", + "post_id": "uk.org.publicwhip/cons/375-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90676", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/13828", + "post_id": "uk.org.publicwhip/cons/375-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90677", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13901", + "post_id": "uk.org.publicwhip/cons/400-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90678", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13892", + "post_id": "uk.org.publicwhip/cons/400-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90679", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25568", + "post_id": "uk.org.publicwhip/cons/400-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90680", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25160", + "post_id": "uk.org.publicwhip/cons/400-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90681", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/11734", + "post_id": "uk.org.publicwhip/cons/400-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90682", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13829", + "post_id": "uk.org.publicwhip/cons/402-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90683", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/24981", + "post_id": "uk.org.publicwhip/cons/402-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90684", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13867", + "post_id": "uk.org.publicwhip/cons/402-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90685", + "on_behalf_of_id": "traditional-unionist-voice", + "person_id": "uk.org.publicwhip/person/25122", + "post_id": "uk.org.publicwhip/cons/402-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90686", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25141", + "post_id": "uk.org.publicwhip/cons/402-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90687", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13780", + "post_id": "uk.org.publicwhip/cons/406-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90688", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25558", + "post_id": "uk.org.publicwhip/cons/406-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90689", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/13899", + "post_id": "uk.org.publicwhip/cons/406-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90690", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25129", + "post_id": "uk.org.publicwhip/cons/406-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90691", + "on_behalf_of_id": "green", + "person_id": "uk.org.publicwhip/person/25121", + "post_id": "uk.org.publicwhip/cons/406-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90692", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25561", + "post_id": "uk.org.publicwhip/cons/515-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90693", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25545", + "post_id": "uk.org.publicwhip/cons/515-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90694", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/13788", + "post_id": "uk.org.publicwhip/cons/515-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90695", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13794", + "post_id": "uk.org.publicwhip/cons/515-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90696", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25134", + "post_id": "uk.org.publicwhip/cons/515-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90697", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25606", + "post_id": "uk.org.publicwhip/cons/519-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90698", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25154", + "post_id": "uk.org.publicwhip/cons/519-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90699", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13871", + "post_id": "uk.org.publicwhip/cons/519-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90700", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25552", + "post_id": "uk.org.publicwhip/cons/519-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90701", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25566", + "post_id": "uk.org.publicwhip/cons/519-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90702", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13900", + "post_id": "uk.org.publicwhip/cons/557-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90703", + "on_behalf_of_id": "alliance", + "person_id": "uk.org.publicwhip/person/25547", + "post_id": "uk.org.publicwhip/cons/557-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90704", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13910", + "post_id": "uk.org.publicwhip/cons/557-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90705", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25139", + "post_id": "uk.org.publicwhip/cons/557-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90706", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13870", + "post_id": "uk.org.publicwhip/cons/557-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90707", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25562", + "post_id": "uk.org.publicwhip/cons/593-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90708", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13847", + "post_id": "uk.org.publicwhip/cons/593-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90709", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/25607", + "post_id": "uk.org.publicwhip/cons/593-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90710", + "on_behalf_of_id": "uup", + "person_id": "uk.org.publicwhip/person/25550", + "post_id": "uk.org.publicwhip/cons/593-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90711", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/13810", + "post_id": "uk.org.publicwhip/cons/593-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90712", + "on_behalf_of_id": "dup", + "person_id": "uk.org.publicwhip/person/13758", + "post_id": "uk.org.publicwhip/cons/629-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90713", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25123", + "post_id": "uk.org.publicwhip/cons/629-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90714", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/13825", + "post_id": "uk.org.publicwhip/cons/629-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90715", + "on_behalf_of_id": "social-democratic-and-labour-party", + "person_id": "uk.org.publicwhip/person/25483", + "post_id": "uk.org.publicwhip/cons/629-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" + }, + { + "id": "uk.org.publicwhip/member/90716", + "on_behalf_of_id": "sinn-fein", + "person_id": "uk.org.publicwhip/person/25159", + "post_id": "uk.org.publicwhip/cons/629-NI", + "start_date": "2017-03-03", + "start_reason": "regional_election" } ], "organizations": [ @@ -893220,6 +893940,66 @@ "current_constituency": "Stoke-on-Trent Central", "current_party": "Labour" } + }, + { + "id": "uk.org.publicwhip/person/25602", + "other_names": [ + { + "family_name": "Stewart", + "given_name": "John", + "note": "Main" + } + ] + }, + { + "id": "uk.org.publicwhip/person/25603", + "other_names": [ + { + "family_name": "Dolan", + "given_name": "Jemma", + "note": "Main" + } + ] + }, + { + "id": "uk.org.publicwhip/person/25604", + "other_names": [ + { + "family_name": "McCallion", + "given_name": "Elisha", + "note": "Main" + } + ] + }, + { + "id": "uk.org.publicwhip/person/25605", + "other_names": [ + { + "family_name": "Catney", + "given_name": "Pat", + "note": "Main" + } + ] + }, + { + "id": "uk.org.publicwhip/person/25606", + "other_names": [ + { + "family_name": "Ennis", + "given_name": "Sin\u00e9ad", + "note": "Main" + } + ] + }, + { + "id": "uk.org.publicwhip/person/25607", + "other_names": [ + { + "family_name": "Buckley", + "given_name": "Jonathan", + "note": "Main" + } + ] } ], "posts": [ diff --git a/scripts/json-nia-2017-end b/scripts/json-nia-2017-end new file mode 100755 index 000000000..7784edee2 --- /dev/null +++ b/scripts/json-nia-2017-end @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from popolo import Popolo +data = Popolo() + +mships = data.memberships.in_org('northern-ireland-assembly').current() +assert len(mships) == 108 +for mship in mships: + mship['end_date'] = '2017-01-26' + mship['end_reason'] = 'dissolved' + +data.dump() diff --git a/scripts/json-nia-2017-new b/scripts/json-nia-2017-new new file mode 100755 index 000000000..c72ec8315 --- /dev/null +++ b/scripts/json-nia-2017-new @@ -0,0 +1,97 @@ +#!/usr/bin/env python + +import os +from bs4 import BeautifulSoup +import requests +import requests_cache + +from popolo import Popolo +from popolo.utils import new_id + +URL = 'http://www.bbc.co.uk/news/politics/northern-ireland-constituencies/N060000%02d' +# Manual overrides +PARTY_FIXES = { + 'democratic-unionist': 'dup', + 'sdlp': 'social-democratic-and-labour-party', + u'sinn-f\xe9in': 'sinn-fein', + 'ulster-unionist': 'uup', +} +NAME_FIXES = { + 'Chris Hazzard': 'Christopher Hazzard', + u'Sin\xe9ad Bradley': 'Sinead Bradley', + 'Stephen Aiken': 'Steve Aiken', + u'Se\xe1n Lynch': 'Sean Lynch', +} + +# Set up requests cache +cache_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'cache') +requests_cache.install_cache(cache_path, expire_after=60*10) + +data = Popolo() + +# Map from area name to post ID +AREA_NAME_TO_POST = {post['area']['name']: post['id'] for post in data.posts.values() if 'NI' in post['id']} +# List of all memberships of NIA we already have +MSHIPS = data.memberships.in_org('northern-ireland-assembly') +# IDs to start working from for adding new entries +max_mship_id = data.max_mla_id() +max_person_id = data.max_person_id() + +for i in range(1, 18+1): + # Get data out of HTML + soup = BeautifulSoup(requests.get(URL % i).text) + cons = soup.find('h1').string.replace('&', 'and') + summary = soup.find(id='ni2017_constituency_summary') + rows = summary.findAll(class_='results-table__body-row') + for row in rows: + typ = row.find( + class_='results-table__body-item--ni-summary').find( + class_='results-table__body-text').string + party = row.find(class_='results-table__party-name--long').string.strip() + name = row.find( + class_='results-table__body-item--candidate-ni-summary').find( + class_='results-table__body-text').string.strip() + + # Ignore rows we don't care about, and canonicalise those we do + if typ != 'Elected': + continue + party = party.replace(' Party', '').lower().replace(' ', '-') + party = PARTY_FIXES.get(party, party) + name = NAME_FIXES.get(name, name) + + # We only want to match people with the same name and who have been MLAs + people = [p for p in data.persons.values() if data.names[p['id']] == name and len(MSHIPS.of_person(p['id']))] + if name == 'Mark H Durkan': # Otherwise two Mark Durkans to confuse + people = [{'id': 'uk.org.publicwhip/person/25143'}] + assert len(people) < 2 + + # Existing or new person + if len(people): + person = people[0] + else: + max_person_id = new_id(max_person_id) + given, family = name.split(' ') + person = { + "id": max_person_id, + "other_names": [ { + "family_name": family, + "given_name": given, + "note": "Main" + } ] + } + data.add_person(person) + + # Create new membership + max_mship_id = new_id(max_mship_id) + mship = { + "id": max_mship_id, + 'on_behalf_of_id': party, + 'person_id': person['id'], + 'post_id': AREA_NAME_TO_POST[cons], + "start_date": "2017-03-03", + "start_reason": "regional_election" + } + print cons, name, mship['on_behalf_of_id'], mship['person_id'] + data.add_membership(mship) + +data.dump()