A morph.io scraper for NZ Members of Parliament data, fetched straight from data.govt.nz's official open-data catalogue - not from Hansard at all, a completely separate source from the aotearoa_hansard/ aotearoahansardtranscripts scrapers.
Data lives on morph.io, not in this repo: https://morph.io/Br3nda/aotearoa_parliament_members
That page has the scraper's run history and a data.sqlite you can query directly (via the page
itself, or morph.io's API) - this repo is just the code
that produces it.
Three raw tables, matching the three CSVs the dataset publishes:
member_list - everyone who's ever been an MP, one row per personmember_terms - one row per parliamentary term served (most members have several)member_contact_details - current MPs only, no shared ID with the other two tables, just a
name to match onDownstream, hotair is what actually turns this data into
linked Member/MemberTerm records - it already has a working import for these same three CSVs
(Members::Fetcher/Members::Importer), just reading from a local file cache rather than
morph.io. This scraper only stores raw content, it doesn't parse or normalise anything.
Total run time: half a minute
Total cpu time used: less than 5 seconds
Total disk space used: 33.5 KB