Dataset of legislative activity by Indian parliamentary representatives. Sourced from PRS India.
Browse the minified dataset for the current Lok Sabha here: https://flatgithub.com/Vonter/india-representatives-activity?filename=csv/Lok%20Sabha/17th.csv&stickyColumnName=Name.
The complete dataset is available as JSON files under the json/ folder in this repository. The JSON files include details on Attendance, Debates, Questions and Bills. Each Lok Sabha is available as a separate JSON file:
Member's activites are available as separate JSONs, split into Debates, Questions and Bills for each Lok Sabha
Minified datasets, containing a subset of the data available in the above JSONs, can be found as CSV files under the csv/ folder:
The minified dataset combined across each Lok Sabha can be explored here: https://flatgithub.com/Vonter/india-representatives-activity?filename=csv/Lok%20Sabha.csv&stickyColumnName=Name
- fetch.sh: Fetches the raw HTML pages from PRS India
- flatten.py: Parses the raw HTML pages, and generates the JSON and CSV datasets
- fetchActivityRecords.py: Denests the parent JSON records and joins with Member details
This india-representatives-activity dataset is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Users of this data should attribute PRS India: https://prsindia.org
You are free:
- To share: To copy, distribute and use the database.
- To create: To produce works from the database.
- To adapt: To modify, transform and build upon the database.
As long as you:
- Attribute: You must attribute any public use of the database, or works produced from the database, in the manner specified in the ODbL. For any use or redistribution of the database, or works produced from it, you must make clear to others the license of the database and keep intact any notices on the original database.
- Share-Alike: If you publicly use any adapted version of this database, or works produced from an adapted database, you must also offer that adapted database under the ODbL.
- Keep open: If you redistribute the database, or an adapted version of it, then you may use technological measures that restrict the work (such as DRM) as long as you also redistribute a version without such measures.
Ensure you have bash
, curl
and python
installed
# Fetch the data
bash fetch.sh
# Generate the CSV
python flatten.py
The fetch script sources data from PRS India (https://prsindia.org/)
- State Legislatures
- Rajya Sabha