Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Wanted: #ldnont Council Meeting Vote Parser

Open Council

Open Council is happening! Currently a London implementation of Kevin O'Donnell's OttWatch system is working hard on pulling meetings from London's SIRE system, making it so you can discuss individual council meetings publicly.

A very important part of the original vision for Open Council was the ability to view council votes by councillor. We are almost there! London records their votes in a very different way than Ottawa, however, and we've run into a bit of a snag.

So, I have a programming challenge for you!

Given a council meeting's minutes from London's implementation of SIRE, output the motions made and the voting results in a machine-readable format.

For example, this http://sire.london.ca/mtgviewer.aspx?meetid=606&doctype=MINUTES should result in something like:

motions: [
	motion: "Motion made by Councillor B. Polhill and seconded by Councillor S. Orser to Approve that the Council rise and go into Committee of the Whole, in camera, for the purpose of considering...",
	passed: true,
	yeas: [
		"J.F. Fontana", 
		"B. Polhill", 
		"B. Armstrong", 
		"J.B. Swan", 
		"S. Orser", 
		"J.L. Baechler", 
		"N. Branscombe", 
		"M. Brown", 
		"P. Hubert", 
		"D.G. Henderson", 
		"P. Van Meerbergen", 
		"D. Brown", 
		"H.L. Usher", 
		"J.P. Bryant", 
		"S.E. White"
	],
	nays: []
],
[
	motion: "Motion made by Councillor N. Branscombe and seconded by Councillor S. Orser to Approve the Minutes of the 1st Meeting held on December 3, 2013.",
	passed: true,
	yeas: [
		"J.F. Fontana", 
		"B. Polhill", 
		"B. Armstrong", 
		"J.B. Swan", 
		"S. Orser", 
		"J.L. Baechler", 
		"N. Branscombe", 
		"M. Brown", 
		"P. Hubert", 
		"D.G. Henderson", 
		"P. Van Meerbergen", 
		"D. Brown", 
		"H.L. Usher", 
		"J.P. Bryant"
	],
	nays: []
],
[
	motion: "Motion made by Councillor D. Brown and seconded by Councillor S. Orser to Approve referral of the following communications, as noted...",
	passed: true,
	yeas: [
		"J.F. Fontana", 
		"B. Polhill", 
		"B. Armstrong", 
		"J.B. Swan", 
		"S. Orser", 
		"J.L. Baechler", 
		"N. Branscombe", 
		"M. Brown", 
		"P. Hubert", 
		"D.G. Henderson", 
		"P. Van Meerbergen", 
		"D. Brown", 
		"H.L. Usher", 
		"J.P. Bryant"
	],
	nays: []
]

I'll be working on this, but if anyone has any ideas, PLEASE give me shout. If you are a regular expression god, this might seem like a piece of cake to you, in which case you should definitely contact me :)

Foo

gav

Questions? Comments? Can you help out? Did you create this in your sleep last night?

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