https://github.com/patcon/polis-exporter
https://github.com/patcon/polis-exporter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patcon/polis-exporter
- Owner: patcon
- License: gpl-3.0
- Created: 2024-04-11T06:27:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T17:40:28.000Z (9 months ago)
- Last Synced: 2025-02-01T23:20:09.428Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-polis - patcon/polis-exporter - An unfinished, messy work-in-progress set of scripts attempting to generate a Polis zipped export archive from public API endpoints. (Misc)
README
# Polis Exporter
This is a messy work-in-progress set of scripts for generating a Polis zipped archive from public resources.
Docs: [Export format](https://compdemocracy.org/export/)
## Usage
```
npm installCONVO_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
```## Roadmap
- [x] Write script to download all relevant files
- [x] Map all relevant CSV export data to data from public REST API
- Ideally, this would not need supplying a password.
- Write script to generate...
- [x] `votes.csv`
- [x] `summary.csv`
- [x] `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