fivemack: (Default)
Tom Womack ([personal profile] fivemack) wrote2010-05-08 09:04 pm

4056 lines of data

So you don't have to scrape the BBC yourself:

http://www.chiark.greenend.org.uk/~twomack/2010-results.txt

contains 4056 lines of the form

Chelsea & Fulham } Blue Environment Party } 17


The vote-count is blank for all the parties in Thirsk & Malton since that election hasn't happened yet.

The example script here makes the following list of parties standing in more than twenty places:

Party nameNumber of places standing Deposits saved
Socialist Labour Party230
Monster Raving Loony Party270
Trade Unionist and Socialist Coalition380
Plaid Cymru4029
Scottish National Party5959
Christian Party710
English Democrats1071
Independent25013
Green3357
British National Party33872
UK Independence Party55899
Conservative630627
Labour631625
Liberal Democrat631630


(for the curious, the English Democrats kept their deposit in Doncaster North; the Liberal Democrats kept all of theirs but I divided by zero in Thirsk; the Conservatives lost theirs in Na H-Eileanan An Iar and Glasgow East; Philip Lardner stood as an independent in Ayrshire North after being deselected from the Conservatives)

[identity profile] mooism.livejournal.com 2010-05-08 11:18 pm (UTC)(link)
650 seats in the UK, less 18 for NI gives 632 seats in GB, less one for the speaker leaves 631. Leading to the questions of which other 2 seats didn't have a Lib Dem candidate, which 2 didn't have a Labour candidate, and which 3 didn't have a Tory candidate?

[identity profile] fivemack.livejournal.com 2010-05-09 08:36 am (UTC)(link)
I omitted Aberavon (the list at the bottom of each HTML file, which looked like a list of constituencies, was in fact a list of other constituencies).

And I assumed that every constituency had a three-character code. In fact every constituency except Berwick-Upon-Tweed has a three-letter code, and Berwick has a two-letter code. Bother.

More-correct data (recognisable by having 4069 rather than 4056 lines) now up.
Edited 2010-05-09 08:43 (UTC)

[identity profile] fivemack.livejournal.com 2010-05-09 08:42 am (UTC)(link)
I have 20 seats with no Conservative candidate: Buckingham, eighteen NI seats, and Ayrshire North and Arran (http://news.bbc.co.uk/1/shared/election2010/results/constituency/848.stm) where the suspended homophobic candidate Philip Lardner (http://news.bbc.co.uk/1/hi/uk_politics/election_2010/scotland/8647206.stm) stood as an independent.

[identity profile] mooism.livejournal.com 2010-05-09 11:32 am (UTC)(link)
Hmm, I'm sure Lardner would have been listed on the ballot paper as the official Conservative candidate. But that makes sense, thank you.