milh0use / twitter-scripts

0 stars 0 forks source link

Find Twitter Feeds of candidates #2

Open milh0use opened 6 years ago

milh0use commented 6 years ago

Given a ward, find a candidate with a Twitter handle. Add all their friends to a collection of Twitter handles for their party in their council area. Then for each other candidate in that party and council area, check the collection for matches.

milh0use commented 6 years ago

DemocracyClub API notes:

https://candidates.democracyclub.org.uk/api/v0.9/
{
    "persons": "http://candidates.democracyclub.org.uk/api/v0.9/persons/",
    "organizations": "http://candidates.democracyclub.org.uk/api/v0.9/organizations/",
    "posts": "http://candidates.democracyclub.org.uk/api/v0.9/posts/",
    "elections": "http://candidates.democracyclub.org.uk/api/v0.9/elections/",
    "party_sets": "http://candidates.democracyclub.org.uk/api/v0.9/party_sets/",
    "images": "http://candidates.democracyclub.org.uk/api/v0.9/images/",
    "post_elections": "http://candidates.democracyclub.org.uk/api/v0.9/post_elections/",
    "memberships": "http://candidates.democracyclub.org.uk/api/v0.9/memberships/",
    "logged_actions": "http://candidates.democracyclub.org.uk/api/v0.9/logged_actions/",
    "extra_fields": "http://candidates.democracyclub.org.uk/api/v0.9/extra_fields/",
    "simple_fields": "http://candidates.democracyclub.org.uk/api/v0.9/simple_fields/",
    "complex_fields": "http://candidates.democracyclub.org.uk/api/v0.9/complex_fields/",
    "person_redirects": "http://candidates.democracyclub.org.uk/api/v0.9/person_redirects/",
    "council_elections": "http://candidates.democracyclub.org.uk/api/v0.9/council_elections/",
    "candidate_results": "http://candidates.democracyclub.org.uk/api/v0.9/candidate_results/",
    "post_results": "http://candidates.democracyclub.org.uk/api/v0.9/post_results/",
    "result_sets": "http://candidates.democracyclub.org.uk/api/v0.9/result_sets/",
    "candidates_for_postcode": "http://candidates.democracyclub.org.uk/api/v0.9/candidates_for_postcode/"
}