Giter Club home page Giter Club logo

knesset-data's Introduction

knesset-data

APIs and documentation to allow getting data about the Israeli Parliament (Knesset).

Sub-projects

Data sources documentation
Knesset datapackage

travis-ci build status

Low level Python API

travis-ci build status

$ pip install knesset-data
python -c "from knesset_data.dataservice.committees import Committee\
print(', '.join([committee.name for committee in Committee.get_all_active_committees()]))
ועדת הכנסת, ועדת הכספים, ועדת הכלכלה, ועדת החוץ ...
Higher level Django module

travis-ci build status

Known issues / FAQ / Common problems

knesset-data's People

Contributors

agamrafaeli avatar alonisser avatar noamelf avatar orihoch avatar shevyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

knesset-data's Issues

void

This issue was automatically created by the knesset-data health monitor, please do not modify the title or remove any labels

unexpected error while trying to fetch metadata for committees service

url=http://www.google.com/

error=request exception

error content...

Knesset Dataservice: filtering by date returns an error in votes and MMM services

Reproduction Steps (for votes)

Expected
  • list of votes filtered according to the $filter
  • in the above example, I expect to get votes between 01, Jan, 2014 and 01, Feb, 2014
Actual
  • Error
  • image
  • image
Additional scenarios
  • the same occurs with MMM data service - see comment by @alonisser below

Knesset Dataservice: wrong vote total against count returned for vote id 22156

Reproduction Steps

Expected
  • total against should be 4 (as it is on the website)
Actual
  • total against is 3
  • image

should have documentation of the available knesset data

User Story

Jack is a statistician that wants to do some research on the votes of the knesset. He searches google for knesset votes data and finds the knesset-data project. He uses the python apis to get all the raw data of votes he required for his researchh. He publishes his research based on the findings

Expected

  • Jack will achieve praise for his wonderful research

Actual

  • Jack will be scorned by his peers because he misused the data.
  • Jack assumed that the field "total_against" contains the total number of members that voted against.
  • However - if Jack would have searched in the knesset-data issues he would have found issue #22 which mentions that total_against field is actually wrong in many cases.

Description

We should have good documentation of the meaning of the data. This should not include just how to use the APIs but should give a description of the data - where the data is coming from, what's the meaning of the data, how often it's updated etc..

An example of such a documentation:

https://github.com/hasadna/knesset-data/blob/master/python/knesset_data/dataservice/VOTES.md

See Also

  • #31 - add sphinx docs

should have a knesset dataservice health monitor

User Story

Open Knesset periodically (every night) gets votes data form The Knesset using the Knesset Dataservice.

On March. 2 there was a problem on Knesset side which caused votes api to stop working

Expected

  • On March.3 - Open Knesset developers team are notified of the problem. They proceed to investigate and notify Knesset about the problem.

Actual

  • Open Knesset developers were notified about the problem only on March.28 when someone manually noticed there is a problem (see hasadna/Open-Knesset#642)

Description

should have a process that periodically (daily) checks the knesset dataservice services and automatically open new issues if problems are encountered

it should check:

  • general availability of the service
  • that latest data is returned
  • that returned data is valid

Knesset votes page in Open Knesset is not up to date

אהלן,
ההצבעות בכנסת פתוחה ישנות יחסית. החדשות ביותר הן מהשני בחודש מרץ.
עד כמה שהבנתי יש בעיה בגריפת המידע מאתר הכנסת. האם ההצבעות החדשות יעלו לאתר כנסת פתוחה?
תודה,
חובב
המשמר החברתי

lobbyist hebrew data is returned as ?????

When trying the api for vie lobbyist represent

http://online.knesset.gov.il/WsinternetSps/KnessetDataService/LobbyistData.svc/View_lobbyist_represent/

I get for example:

m:properties>
                <d:lobbyist_represent_id m:type="Edm.Int32">14821531</d:lobbyist_represent_id>
                <d:lobbyist_id m:type="Edm.Int32">205</d:lobbyist_id>
                <d:lobbyist_represent_name>??????</d:lobbyist_represent_name>
                <d:lobbyist_represent_domain>????÷??</d:lobbyist_represent_domain>
                <d:lobbyist_represent_type>÷???</d:lobbyist_represent_type>

            </m:properties>

should provide data about MMM documents

need to research the latest knesset API and see if there is data about MMM documents, this should be documented in https://github.com/hasadna/knesset-data/tree/master/docs/dataservice

alternatively - look for other sources for MMM data

once we have the documentation of how to get MMM data - can move forward to implement code that fetches it in knesset-data-python

Specifically, we need to get MMM documents related to committee meetings

related issues

error in committees/CommitteeAgendaSearch: failed to get meetings for committee 572

This issue was automatically created, please do not modify the title or remove any labels

Reproduction steps

expected
  • meetings of committee 572 (הוועדה המיוחדת לדיון בהצעת חוק הרשות הממשלתית להתחדשות עירונית ובהצעת חוק שירותים פיננסיים חוץ מוסדיים)
actual
  • error
    image
notes
  • Unexpected exception received while trying to get meetings of committee 572: [Errno 104] Connection reset by peer

MMM dataservice is extremely flaky (at best)

for example trying the following (url encoded) url:

http://online.knesset.gov.il/WsinternetSps/KnessetDataService/MMMData.svc/View_documents?orderBy=doc_date+desc&skip=0&top=10&%24select=doc_abstract%2Cdoc_date%2Cdoc_id%2Cdoc_link%2CDocumentsDocumentClient&%24expand=DocumentsDocumentClient

Completely valid odata request and validated with xodata

fails 8 out 10 times and sometimes all the time (for example 5.3.16 19:00 Israel time)
When trying without any params it does work quite consistently.

Interesting Info that might be connected to the issue: dataServiceVersion header is different with mmm then from Votes and Meetings. returns 2.0 and not 1.0 as the Votes And Meetings APIs.

Blocks adding mmm data #24

Hamishmar Votes Data should include member ID instead of name

Currently Hamishmar votes data csv file contains a list of member names

This is a problem because the spelling they use is different then Knesset spelling.

Hamishmar will do a change on their side which will allow them to export the member IDs (same as the official Knesset ID which is the same as the Open Knesset Member ID as well)

Update (May.10) - we got the updated format, see the comment below

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.