A python client for senat.fr website.
Retrieve painlessly JSON data from senat.fr.
Python 3
- from pip:
pip3 install senapy
- locally:
pip3 install -e .
- 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
- QuestionSearchService to search for questions
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