I up/down voted the candidates during the primary of the 2014 moderator elections. How can I see the 10 candidates that would proceed to the election phase if the election phase would start right now?
I understand that the ordering is random to not influence this initial voting unduly and that is good.. But now that I have voted I would like to see how things stand, and maybe switch a down- to an up-vote in order to make some candidate end up before some other candidate.
Two candidate might have different, low, preference for me, and I have down voted both, to give a better chance to the candidates that I prefer most. But if the less preferred candidate of those two has one vote more than the other I rather switch my vote to up for that other candidate.
You can of course copy and paste the names and scores in file and sort by score, and I already have a program that scrapes the page and does so automatically. But it would be nicer if there is some URL away from the page where you vote, where you can actually see the order of the candidates by votes' score.
If the data explorer has this data, I could write some query there, but the data there only gets update once a week, so that doesn't make much sense.
Of course this should be hosted on one of the stackoverflow sites, so there can be no doubt about the correctness of the data and/or the update rate.
For those who pinged me and asked, this is the crude scraper:
#!/usr/bin/env python
import urllib2
name_next = False
vote_count = -1
candidates = []
for line in urllib2.urlopen('http://stackoverflow.com/election/6?tab=primary'):
if 'user-details' in line:
name_next = True
continue
if 'vote-count-post' in line:
vote_count = int(line.split('>', 1)[1].split('<', 1)[0])
if name_next == True:
name_next = False
candidate = line.split('>', 1)[1].split('<', 1)[0]
candidates.append((vote_count, candidate))
for idx, candidate in enumerate(sorted(candidates, reverse=True)):
if idx == 10:
print('--------------------------------')
print("{0:>20} {1}".format(candidate[1], candidate[0]))