mysociety / kenya-senate-members

Scrapes parliament.go.ke

Establishment Chapter eight of the Constitution of Kenya (the Constitution) establishes the Legislature. Article 93 of the Constitution states that “T...


This is a scraper that runs on Morph. To get started see the documentation

Contributors jacksonj04

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... (i) Scraping from http://parliament.go.ke/the-senate/senators?start=0 Traceback (most recent call last): File "scraper.py", line 135, in <module> memberData['honorific_string'] = nameRegex.group(1) AttributeError: 'NoneType' object has no attribute 'group'

Data

Downloaded 1106 times by everypolitician

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (19 KB) Use the API

rows 10 / 67

name url district_id party_id id honorific_id party county honorific_string
Dullo Fatuma Adan
Q1499046
Q7141057
3859-sen-adan-dullo-fatuma
Q47515115
PDR
Isiolo
Sen.
Abdullahi Ibrahim Ali
Q1852209
Q27963537
3871-sen-ali-abdullahi-ibrahim
Q47515115
JP
Wajir
Sen.
Issa Juma Boy
Q952571
Q1640905
3889-sen-boy-issa-juma
Q47515115
ODM
Kwale
Sen.
Mercy Chebeni
Q1640905
3890-sen-chebeni-mercy
Q47515115
ODM
Sen.
Samson K Cherarkey
Q1964569
Q27963537
3891-sen-cherarkey-samson-k
Q47515115
JP
Nandi
Sen.
Aaron Kipkirui Cheruiyot
Q1739252
3868-sen-cheruiyot-aaron-kipkirui
Q47515115
N/A
Kericho
Sen.
Christine Zawadi Gona
3892-sen-gona-christine-zawadi
Q47515115
N/A
Sen.
Farhiya Ali Haji
Q27963537
3893-sen-haji-farhiya-ali
Q47515115
JP
Sen.
Mohamed Yusuf Haji
Q1494292
Q27963537
3855-sen-haji-mohamed-yusuf
Q47515115
JP
Garisa
Sen.
Abshiro Soka Halake
Q1422517
3894-sen-halake-abshiro-soka
Q47515115
KANU
Sen.

Statistics

Average successful run time: half a minute

Total run time: about 3 hours

Total cpu time used: 2 minutes

Total disk space used: 128 KB

History

  • Auto ran revision db544ef5 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db544ef5 and failed .
    nothing changed in the database
  • Auto ran revision db544ef5 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db544ef5 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db544ef5 and failed .
    nothing changed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

kenya-senate-members / scraper.py