Collection of scripts to power coverage of the 2020 election from The Pitt News.
-
Data from PA. SOS --> Ingest via
importsos.js--> Posted to Google spreadsheet --> Displayed through maps or other data visualizations -
Data from County Elections --> Ingest via
importcounty.js--> Posted to Google spreadsheet --> Displayed through maps or other data visualizations
Create a Google OAuth app, and then credentials.json with the following format:
{
"client_id": "",
"client_secret": "",
"redirect_uris": [
""
]
}
-
Run
SPREADSHEET_ID=XX node importcounty.jsto import the latest results from the Allegheny County Division of Elections website to a Google spreadsheet. -
Use
map_county.phpto display the generated map.
-
Run
SPREADSHEET_ID=XX node importsos.jsto import the latest results from the Pennsylvania Secretary of State website to a Google spreadsheet. -
Use
map_pa.phpto display the generated map.