Skip to content

Instantly share code, notes, and snippets.

View jamescmacey's full-sized avatar

James Macey jamescmacey

View GitHub Profile
@jamescmacey
jamescmacey / nz-personal-vote-graph.py
Last active September 12, 2020 01:08 — forked from rlucioni/senate-vote-graph.py
New Zealand Parliament — Conscience vote graph
# This code is adapted from https://gist.github.com/rlucioni/8bdb1092579041ce739c
# Also see https://renzolucioni.com/senate-voting-relationships/
# It fetches personal votes from WhereTheyStand.nz and creates a similar
# .gexf file.
# Due to the rarity of personal votes in New Zealand's Parliament, I'm not sure
# how useful this actually is.
import json
from itertools import combinations