5

I'm working on a Chrome extension to analyse Facebook advert targetting by political parties, in the run-up to the 2017 UK general election. (https://whotargets.me)

In order to conduct our analysis, we need to match adverts to political parties.

Do you know any lists of UK political party / politician facebook pages? Ideally we need:

  • page ID
  • vanity URL string
  • page name
  • party affiliation

We're really eager to find regional/local/branch party and politician pages.

5

You can start with http://everypolitician.org, here's a link to the UK data on github.

At Unigraph we've merged everypolitician's with data from Wikidata and Freebase, so you can conveniently query it, for example "get the facebook, twitter and wikidata ids of Adam Holloway, the fb and twitter urls and the party he is member of".

Reach to me for an API key and any questions you might have on how to best extract the data you'll need.

4

Wikidata: about 500 UK politicians on Facebook.

SELECT ?politician ?politicianLabel ?url ?partyLabel WHERE {
    ?politician wdt:P2013 ?facebook .
    ?politician wdt:P27 wd:Q145 .
    ?politician wdt:P106 wd:Q82955 .
    OPTIONAL {?politician wdt:P102 ?party}
    BIND (IRI(CONCAT('https://facebook.com/', ?facebook)) AS ?url)  
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} ORDER BY (bound(?party))

Try it!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.