mysociety / kenya-parliament-members

Scrapes www.parliament.go.ke and data.gov.uk

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://www.parliament.go.ke/the-national-assembly/members?start=0 Traceback (most recent call last): File "scraper.py", line 427, in <module> html = scraperwiki.scrape(scrapeUrl) File "/app/.heroku/src/scraperwiki/scraperwiki/utils.py", line 31, in scrape f = urllib2.urlopen(req) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found

Data

Downloaded 867 times by everypolitician jacksonj04

To download data sign in with GitHub

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

rows 10 / 349

name url honorific_string honorific_id id district party district_id constituency county party_id role
MP (Dr.) Keynan, Wehliye Adan, CBS
Hon.
Q2746176
4011-hon-keynan-wehliye-adan
JP
Q47463412
Eldas
Wajir
Q27963537
Yusuf Hassan Abdi
Hon.
Q2746176
3921-hon-abdi-yusuf-hassan
JP
Q6359828
Kamukunji
Nairobi
Q27963537
Bashir Sheikh Abdullah
Hon.
Q2746176
3922-hon-abdullah-bashir-sheikh
JP
Q47463414
Mandera North
Mandera
Q27963537
Paul Odalo Mak'Ojuando Abuor
Hon.
Q2746176
3923-hon-abuor-paul-odalo-mak’ojuando
ODM
Q7365633
Rongo
Migori
Q1640905
Beatrice Kahai Adagala
Hon.
Q2746176
3924-hon-adagala-beatrice-kahai
ANC
Q1313202
Vihiga
Vihiga
Q47489380
Q47484213
Safia Sheikh Adan
Hon.
Q2746176
3925-hon-adan-safia-sheikh
JP
Q1323683
Marsabit
Marsabit
Q27963537
Q47484213
Shakeel Ahmed Shabbir Ahmed
Hon.
Q2746176
3926-hon-ahmed-shakeel-ahmed-shabbir
IND
Q6417349
Kisumu East
Kisumu
Q327591
Miruka Ondieki Alfah
Hon.
Q2746176
3927-hon-alfah-miruka-ondieki
KNC
Q47463485
Bomachoge Chache
Kisii
Q6392670
Adan Haji Ali
Hon.
Q2746176
3928-hon-ali-adan-haji
JP
Q47462269
Mandera South
Mandera
Q27963537
Amin Deddy Mohamed Ali
Hon.
Q2746176
3929-hon-ali-amin-deddy-mohamed
JP
Q6473833
Laikipia East
Laikipia
Q27963537

Statistics

Average successful run time: less than a minute

Total run time: 2 days

Total cpu time used: 4 minutes

Total disk space used: 219 KB

History

  • Auto ran revision 934c66fd and failed .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision 934c66fd and failed .
    nothing changed in the database
  • Auto ran revision 934c66fd and failed .
    nothing changed in the database
  • Auto ran revision 934c66fd and failed .
    nothing changed in the database
  • Auto ran revision 934c66fd and failed .
    nothing changed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

kenya-parliament-members / scraper.py