Coder Social home page Coder Social logo

adomo / irish-elections Goto Github PK

View Code? Open in Web Editor NEW

This project forked from igorbrigadir/irish-elections

0.0 2.0 0.0 410 KB

Open Source database of information on all Irish political candidates

License: MIT License

Ruby 80.59% CoffeeScript 0.31% JavaScript 0.63% CSS 3.46% HTML 15.00%

irish-elections's Introduction

irish-elections

An open source database of information on all Irish political candidates, including their social media presence, for the 2016 general election. The database will be available publicly for citizens to access information about candidates seeking their vote and an open source API will help news organizations, universities and others to build tools and to build stories around the election debate.

Seeding the database

DO NOT seed the database after 20th November as this will overwrite changes made by journalists in the mean time.

Perform the intial seed:

bin/rake db:seed

#API ACCESS

*Currently this is open (e.g. no access tokens required) and read only

All end-points can deliver the data in 3 formats, JSON, CSV and XML.

To get all candidates, got to: http://irish-elections.storyful.com/candidates.xml (for XML)

http://irish-elections.storyful.com/candidates.csv (for CSV format)

http://irish-elections.storyful.com/candidates.json (for JSON format)

You can narrow your results by constituency, e.g. Constituency example: http://irish-elections.storyful.com/constituencies/donegal/candidates.json

To get a list of all constituencies, you can access this in the following way:

http://irish-elections.storyful.com/constituencies.json (replacing “.json” with CSV or XML where needed)

You can narrow your results by Political Party, e.g.

http://irish-elections.storyful.com//parties/fine-gael/candidates.json

To get a list of all parties:

http://irish-elections.storyful.com/parties.json (replacing “.json” with CSV or XML where needed)

You can search by candidates by name, using a “q=” operator, e.g.

http://irish-elections.storyful.com/candidates.json?q=john (replacing “.json” with CSV or XML where needed) will give you a list of all candidates with “john” in their name

irish-elections's People

Contributors

giannileggio avatar tonybyrne avatar mmarignoli avatar eamonnstoryful avatar

Watchers

James Cloos avatar Dara.McGann 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.