Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robmcelhinney/oireachtasvote
Gatsby site to view Irish, Dáil Éireann, politicians voting records with react-table. Information retrieved with Python from REST api.
https://github.com/robmcelhinney/oireachtasvote
gatsby ireland javascript python reactjs
Last synced: 3 months ago
JSON representation
Gatsby site to view Irish, Dáil Éireann, politicians voting records with react-table. Information retrieved with Python from REST api.
- Host: GitHub
- URL: https://github.com/robmcelhinney/oireachtasvote
- Owner: robmcelhinney
- License: lgpl-3.0
- Created: 2019-11-22T18:25:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T17:18:01.000Z (4 months ago)
- Last Synced: 2024-10-09T19:36:10.702Z (4 months ago)
- Topics: gatsby, ireland, javascript, python, reactjs
- Language: JavaScript
- Homepage: https://robmcelhinney.com/OireachtasVote/
- Size: 17 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OireachtasVote | View voting percentages of TDs in Dáil Éireann
Viewable at [https://robmcelhinney.github.io/OireachtasVote/](
https://robmcelhinney.github.io/OireachtasVote/)Attempted to make this website so that it could solely be hosted by Github,
no need to use external database or any server side code, a static webpage only.
Python file uses publically available [Houses of the Oireachtas Open Data APIs](https://data.oireachtas.ie/) to request information regarding a Dáil session, its members, and voting records over its period. This resulting info is stored in two json files that make up the site:
1. members.json stores the politician's name, their party, if the have a cabinet position, and their total votes.
2. info.json holds info regarding the current Dáil, its parties, and when this python file was run.
Both historical session's jsons files are stored in src/data in the format [dail_number]info.json and [dail_number]members.json.
The current Dáil session is also stored in src/ as info.json and members.json.## Install
$ git clone [email protected]:robmcelhinney/OireachtasVote.git
$ cd OireachtasVote
$ npm install
## Run python web scraper
$ py python/OireachtasVoting.py
## Start & watch
$ npm start
## Simple build for production
$ npm run build
## Future plans
Find a way to detect the Ceann-comhairle and remove member from the list.
Add a map of Ireland, allowing the user to select a constituency which only returns their selected members in the table. (May add routing for this)## Any ideas?
Let me know. Should I do the same for the senate?