https://github.com/regardscitoyens/senapy
Retrieve painlessly data from senat.fr
https://github.com/regardscitoyens/senapy
lafabriquedelaloi parliamentary-data
Last synced: 5 months ago
JSON representation
Retrieve painlessly data from senat.fr
- Host: GitHub
- URL: https://github.com/regardscitoyens/senapy
- Owner: regardscitoyens
- License: mit
- Created: 2016-04-10T22:02:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T09:26:59.000Z (over 5 years ago)
- Last Synced: 2024-07-08T05:49:30.908Z (almost 2 years ago)
- Topics: lafabriquedelaloi, parliamentary-data
- Language: HTML
- Size: 982 KB
- Stars: 6
- Watchers: 18
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# senapy
[](https://travis-ci.org/regardscitoyens/senapy) [](https://coveralls.io/github/regardscitoyens/senapy?branch=master)
A python client for [senat.fr](https://senat.fr) website.
## Main goal
Retrieve painlessly JSON data from [senat.fr](https://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`