Skip to content

Instantly share code, notes, and snippets.

@mitchellbusby
Created July 31, 2016 00:27
Show Gist options
  • Save mitchellbusby/b425309cc49ae50cad2ab572f47d0fe0 to your computer and use it in GitHub Desktop.
Save mitchellbusby/b425309cc49ae50cad2ab572f47d0fe0 to your computer and use it in GitHub Desktop.

We love political banter, and we wanted to visualise how political debate occurs over time. Our app, Question Time, visualises mentions of various suburbs around NSW in the NSW Parliament's Hansard records, and how often they occur.

Naturally, Sydney is the most mentioned, so our heatmap is normalised and standardised by the mean to get unique mention data for a particular day of parliamentary sitting.

We also analyse the top five location mentions in NSW on a particular day and plot them on the same map. Clicking one of these locations will open up data in the sidebar about why it was interesting on that day. We're going to start out with snippets of mentions in Hansard, but plan to include more interesting record information via NLP.

We made extensive use of Python's Flask and also the OpenLayers 3 mapping library that gives us heatmaps overlaid onto regular maps for free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment