Giter Site home page Giter Site logo

michaelmulley / openparliament Goto Github PK

View Code? Open in Web Editor NEW
261.0 261.0 39.0 3.99 MB

Keeping tabs on Canada's Parliament

Home Page: http://openparliament.ca/

License: GNU Affero General Public License v3.0

Python 71.51% JavaScript 7.96% HTML 15.22% C++ 0.08% SCSS 5.01% Dockerfile 0.20% Shell 0.01%

openparliament's People

Contributors

michaelmulley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openparliament's Issues

Time filter

Hey!

I'm trying to filter my query with a time_range so that I can only return the debate text of a section of the proceedings, based on the day's agenda but the time_range filter doesn't seem to be working.

For example, this doesn't work:
https://api.openparliament.ca/speeches/?document=%2Fdebates%2F2017%2F5%2F17%2F&time=time__range%3D2012-10-19+10%3A00%2C2012-10-19+11%3A00

That API call was built using the example for the time field. I copy pasted it verbatim but it doesn't work.

The following formats work (as one would expect) but I had no luck making range work

2012-09-04 06:00
2012-09-04 06:00:00
2012-09-04 06:00:00.000000
2012-09-04 06:00Z
2012-09-04 06:00:00+0800
2012-09-04 06:00:00.000000-08:00

Search - sort by date

Search is currently sorted by relevance. Add options to sort by date (desc).

Many requests for this. This is at least partly related to a usability bug where people enter a politician's last name and want to use the search interface to find recent activity.

Granular RSS feeds

I would like to choose which MP activity feeds to subscribe to. For example, a feed that only has votes or only has media mentions.

Create one RSS feed for all new debates

It would be nice to have a single RSS feed for all the debates. This would be a one-stop resource that would allow people keep tabs on everything that's going on (a "river of news").

Search usability - Drive visits to politician page

Many people are entering a politician's last name, at which they get a jillion pages of search results, often leading off with pages of very old entries. The politician in question is virtually always the first search result, and clicking on the linked name will take you to the politician page, which then provides a reasonably clear answer to "what has my MP been saying recently." But the current UI isn't leading people to click on that first result.

I changed the search view to, when you enter a full politician's name (e.g. "thomas mulcair") into search, redirect you to the appropriate MP page. But this can't and shouldn't be the behaviour when you enter just "mulcair." Maybe including a headshot would make people more likely to look at the politician result?

Wrong link to parliament site in the statement section

In the statement section from the debates, when clicking on "Link & Sharing", the option to go the the link to this statement in the parliament site is linking to a broken link.
It seems that the format a the link has changed.
The current link in openParliament is : http://www.ourcommons.ca/en/parliamentary-business#Int-10230856
The link that should be there is: http://www.ourcommons.ca/DocumentViewer/en/42-1/house/sitting-318/hansard#Int-10230856

Easier access to API pages for Votes, Ballots, (others?)

It is easy to get to the API documentation for MPs, Bills, Debates and Committees, because they are listed in the top menu on every page, but Votes and Ballots are less easy to find. I'm not sure if there are other API pages that could also do with more exposure, but it would be nice if these were either added to the top menu, or if there was an index for all API listed on the API page at http://api.openparliament.ca/api/.

Label statements by the Speaker

... so that they don't show up in e-mail alerts, RSS, and when browsing through a politician's statements in the house.

Yes, that means Peter Milliken's page will be kinda barren. But it also means Denise Savoie's constituents get a more useful service.

No hover on ipad

There are no hover events so it's impossible to make the share buttons show to share a quote on twitter for instance.

Model and track party votes

Alas, free will is not often evident in the House: while votes are conducted on the individual level, they are virtually always conducted along party lines. Acknowledge this, track how each party voted on a given bill, and label votes against party line. (Howdtheyvote does this already.)

Wrong number of MPs for current election period

We are currently working on a project that utilizes the openparliament API (great project by the way) and noticed that the resulting query to the /politicians/ API returns only 308 MPs (number of MPs during the period from 2011-2015), instead of the current 338 MPs.
Only after manually setting the limit to >338 are more politicians returned. And even then, only 333 results are listed, so there seem to be some of them missing, still.
I'm currently trying to find out which of them are missing, to maybe give a direction where to look.

Error: No module named compressor

After following your installation instructions, when running "python manage.py runserver", I got caught with "Error: No module named compressor".

Running "pip install django_compressor" fixed the error.

error in setup

Downloading/unpacking PIL>=1.1.6 (from -r requirements.txt (line 7))
  Could not find any downloads that satisfy the requirement PIL>=1.1.6 (from -r requirements.txt (line 7))
  Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL>=1.1.6 (from -r requirements.txt (line 7))
Storing debug log for failure in /home/notroot/.pip/pip.log

Leverage scraperwiki

OK, so I feel stupid even suggesting this, as I'm sure it's on your radar. I actually came into the queues expecting to find a thread to catch up on. But it wasn't here. And so: Hello! Care to do a braindump on how you see that fitting into your amazing project?

Links to politician RSS

Feeds are only implicitly linked via a < link rel >. Add an icon and text to the Politician page.

Create RSS feed for bills

It would be great to have an RSS feed for activity on bills, such as votes and being mentioned in the House.

install requeriments error

  Running command git clone -q git://github.com/wylee/django-haystack.git /root/openparliament/src/django-haystack
  fatal: unable to connect to github.com:
  github.com[0: 140.82.113.4]: errno=Connection timed out

ERROR: Command errored out with exit status 128: git clone -q git://github.com/wylee/django-haystack.git /root/openparliament/src/django-haystack Check the logs for full command output.

Hansards - written questions

We're not parsing them correctly at the moment (because they're weird in the parl.gc.ca version - speaker names aren't linked or labelled as such). We should, uh, parse them correctly.

Slightly better election data

Start with displaying a percentage of votes instead of a raw number. Then, maybe, build a simple election results view.

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.