Python client for senat.fr website
Project description
senapy
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
- example:
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
senapy-0.2.15.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for senapy-0.2.15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 126ffc473a878b2afb4fc949323446395d274ee43cd58d24238b4ae0f03d7e81 |
|
MD5 | 5e52d56aa9a237f00cc8e0600137bc56 |
|
BLAKE2b-256 | 503af97d8c454fa8992a23a19a66d33514ba1292d2549fd50679d280831bb9c9 |