Provides Knesset data in easy to download and read formats (mostly CSV files).
We have a travis job that creates a datapackage for the last 120 days every week and a smaller package for last 5 days every day
Getting the latest zip:
- check the travis build log for "master" branch - https://travis-ci.org/hasadna/knesset-data-datapackage/branches
- pick one of the last successful builds
- scroll to the bottom of the build log
- look for the url, it looks something like this: https://s3.amazonaws.com/knesset-data/datapackage_last_5_days_2017-02-28.zip
Once you downloaded the zip, you can extract and it should be self-explanatory, it contains csv files and other resources.
If you have more advanced requirements or would like to get a datapackage for a longer time-range you can create the datapackage zip file yourself
Warning Knesset APIs are known to be problematic, and sometimes block access for unknown reasons.
Creating a datapackage using the CLI tool:
- Prerequisites
- you are inside an activated python 2.7 virtualenv
- Prepare the environment
- (my-datapackage) $ git clone https://github.com/hasadna/knesset-data-datapackage.git
- (my-datapackage) $ cd knesset-data-datapackage
- (my-datapackage) knesset-data-datapackage$ pip install -e .
- Run the CLI tool
- (my-datapackage) knesset-data-datapackage$ make_knesset_datapackage --help
- by default the CLI tool creates the output and zip files inside data directory (e.g. knesset-data-datapackage/data)
- you should delete existing files before creating a new datapackage