newsdev / elex

A wrapper for the AP v2 Elections API.
Other
171 stars 53 forks source link
elections
**NOTICE**

Maintenance of this project has ended and the repository is no longer supported. You should not expect it to work. Be bold. Seek out new solutions!

Get database-ready election results from the Associated Press Election API v2.0.

Elex is designed to be fast, friendly, and largely agnostic to stack/language/database choice. Basic usage is as simple as:

.. code:: bash

elex results 2016-03-01 > results.csv

Important links

Disclaimer

Elex was developed by The New York Times and NPR and not in concert with the Associated Press. Though we plan on using Elex for the 2016 cycle, there is no guarantee that this software will work for you. If you're thinking about using Elex, check out the license <https://github.com/newsdev/elex/blob/master/LICENSE>_ and contact the authors.

Elex projects and implementations

NPR

New York Times

Experimental

News

Using the FTP system?

Use the Los Angeles Times' python-elections <https://github.com/datadesk/python-elections>_ library.

The New York Times has a sample implementation <https://github.com/newsdev/elex-ftp-loader>_ that demonstrates how you might integrate the FTP loader with your Elex-based system.