This is a messy work-in-progress set of scripts for generating a Polis zipped archive from public resources.
Docs: Export format
npm install
CONVO_ID=xxxxxxxx
node getData.js $CONVO_ID # Download json data on convo
node makeVotes.js $CONVO_ID # Make votes.csv from downloaded files
node makeSummary.js $CONVO_ID # Make summary.csv
node makeComments.js $CONVO_ID # Make comments.csv
- Write script to download all relevant files
- Map all relevant CSV export data to data from public REST API
- Ideally, this would not need supplying a password.
- Write script to generate...
-
votes.csv
-
summary.csv
-
comments.csv
-
participants-votes.csv
-
stats-history.csv
-
- Encapsulate AI calls in a small rest client library
- Encapsulate processing steps in a library
- Write a simple webapp to allow viewing of CSV files
- Allow downloading all CSV's in zip format
- Allow including xid's when moderator email/pass is supplied
- Add an explanatory front page