Git Product home page Git Product logo

candidate_search's Introduction

This is a class and CLI for making speculative searches against the names of people standing for for Parliament. You should treat results in the same way you would any other search results, just because a name and a place matches, does not mean that it is the correct person, so common sense and human verification is required.

It can handle google blog, web, video and news searches as well as twitter search.

How it works:

Google - it searches for the persons name in quotes, their constituency and a specified search term

Twitter - It searches google for the person's name and constituency to try and find a twitter account. If it finds one it will then return tweets specified search term plus the username of the account. This is all is very slow and you are probably better of using tweetminster.co.uk.

CLI documentation:

php ppc-cli.php -s[your search term] -p[full party name] -m[web, blogs, video, news or twitter]

Setup:
The file data/ppcs.csv.ingit is an example file. You need to rename this to The file data/ppcs.csv and then go to http://www.yournextmp.com/data sign up for an API key and download the file called 'csv_contact_only' and copy it's contents into ppcs.csv.

candidate_search's People

Contributors

richardjpope avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.