mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

generate Twitter lists: all candidates, candidates per party from YNMP data #95

Open mhl opened 9 years ago

mhl commented 9 years ago

Emily suggested that people notice when they're added to Twitter lists, so it might generate interest in the YNMP effort if we generated some Twitter lists from our data, say for a start:

... etc.

netclift commented 9 years ago

Excellent idea. The more the lists expose people to varied candidates earlier in the process the more democratizing.

symroe commented 9 years ago

The 2015 candidates list is here:

https://twitter.com/democlub/lists/candidates-2015

mhl commented 9 years ago

@symroe: nice, that's great! Where is the code for generating that list, just for reference?

symroe commented 9 years ago

It's just on my computer for the time being, and I'm running it manually every day. I can turn it in to a django management command and shove it in the ynmp project if you like, but we'll need to store the API credentials somewhere (are they just edited on the server directly?)

mhl commented 9 years ago

Hi @symroe - we'd normally add a option like TWITTER_API_KEY in general.yml-example and in our deploy system set that to the value that needs to be kept secret. So that + a Django management command sounds great to me.

mhl commented 8 years ago

There's a PR for this from @symroe, which just needs a bit of work to make sure it removes corrected Twitter accounts (or candidates who have been marked as "not standing" or deleted, I think - haven't checked that yet).

This might be better updated after https://github.com/mysociety/yournextrepresentative/issues/271 is done, though, because the script could be simpler.