Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cjerdonek/election-grabber

California's June 2012 Primary Election, a quick-and-dirty script to scrape the preliminary results
https://github.com/cjerdonek/election-grabber

Last synced: about 21 hours ago
JSON representation

California's June 2012 Primary Election, a quick-and-dirty script to scrape the preliminary results

Awesome Lists containing this project

README

        

Election Grabber
================

This is a quick-and-dirty script to scrape results for California's
June 5, 2012 Primary Election from the California Secretary of State's
[web site](http://vote.sos.ca.gov/) and generate a spreadsheet of data
on California's first use of the top-two system.

This script was necessary because when I [contacted](http://vote.sos.ca.gov/contact/)
the Secretary of State's Elections Division staff at (916) 657-2166 to ask
if I could have the preliminary election results as a single file (e.g.
as a spreadsheet), the person on the phone responded that they would not
do so until the results are finalized because doing so would allow the
results to be "manipulated." Absurd.

This is surprising given the Secretary of State's
[official bio](http://www.sos.ca.gov/admin/bio.htm), which says she is
a "pioneer in open government reform [and] election integrity" and that she
"has followed through with her commitment to opening up government by making
the agency's work as transparent and accessible as possible."

In any case, this script took less than an hour.

Copyright
---------

Copyright (C) 2012 Chris Jerdonek. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The names of the copyright holders may not be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.