Coder Social home page Coder Social logo

senapy's Introduction

senapy

Build Status Coverage Status

A python client for senat.fr website.

Main goal

Retrieve painlessly JSON data from senat.fr.

Requirements

Python 3

Install:

  • from pip: pip3 install senapy
  • locally: pip3 install -e .

Dossiers Legislatifs

  • Parse one: senapy-cli parse URL_or_filepath
    • example: senapy-cli parse pjl16-537 (instead of the URL, you can just give the ID)
    • warning: for now the file must be in UTF-8
  • Get all the urls: senapy-cli doslegs_urls
  • Parse many: cat urls | senapy-cli parse_many output_dir

Search services

  • QuestionSearchService to search for questions

Tests:

  • pip3 install pytest
  • pytest
  • If you modify the output, there's an utility to make the tests reflect that: python tests/tools/regen_regressions_output.py

senapy's People

Contributors

boogheta avatar fmassot avatar mdamien avatar

Stargazers

 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

Forkers

mdamien

senapy's Issues

Senate website 2023 re-design

Hello there, it's been a while,

I don't know if this project is still used somewhere, but it doesn't support the new version of www.senat.fr.

Let me know if help is needed on that matter. We've worked on it at @Contexte, we could have some ideas.

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.