Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

la-election-night

Parse historical and election night result files published by the Los Angeles County Registrar-Recorder/County Clerk.

Get started

Install the library from PyPI

$ pipenv install la-election-night

Import the library. Get the latest data from the URL you provide. That's it.

>>> import la_election_night
>>> la_election_night.get('http://rrcc.co.la.ca.us/results/0018nov18.ets')
[
    {
        "record_number": "001",
        "record_type": "measure",
        "title": "LA CO FLOOD CONTROL DIST MEASURE W",
        "precincts_total": 4551,
        "precincts_reporting": 4551,
        "precincts_reporting_pct": 1.0,
        "results": [
            {
                "name": "YES",
                "votes": 134294,
                "vote_pct": 0.6668999999999999,
                "party": ""
            },
            {
                "name": "NO",
                "votes": 67064,
                "vote_pct": 0.3331,
                "party": ""
            }
        ]
    },
    ...

You can example of how the data is parsed out can be seen here.

License

MIT

About

Parses election results data published online by the Los Angeles County Registrar-Recorder/County Clerk

Topics

Resources

License

Packages

No packages published