Skip to content

Add CLI interface #18

@ghing

Description

@ghing

While the original use case didn't want to consider how to download and unpack the XML results, I think it will make it a lot easier for volunteers to deal with counties or states that use Clarity systems for their results if they could just run a command to download the results as CSV and then use simpler scripts or manually update the data to do any post-processing.

@chagan and I started working on this at the #NICAR17 hackathon.

Tasks

  • Figure out which values from the Clarity detail XML to include in CSV and how to present them (e.g. # of precincts reporting)
  • Test! Test! Test! At the very least we should have an integration test for both a state and county XML file.
  • Write utility function for parsing jursidiction levels from Clarity URLS (@chagan)
  • Write utility function for retrieving lowest jurisdiction level from Clarity URL (@chagan)
  • Figure out why there are rows with no vote counts when calling clarify results (@ghing)
  • Update CLI to pull levels from url

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions