https://github.com/regardscitoyens/legipy
Python client for the legifrance.gouv.fr website
https://github.com/regardscitoyens/legipy
lafabriquedelaloi parliamentary-data
Last synced: 4 months ago
JSON representation
Python client for the legifrance.gouv.fr website
- Host: GitHub
- URL: https://github.com/regardscitoyens/legipy
- Owner: regardscitoyens
- License: mit
- Created: 2016-05-09T06:35:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T12:14:39.000Z (about 5 years ago)
- Last Synced: 2025-11-29T23:34:32.162Z (6 months ago)
- Topics: lafabriquedelaloi, parliamentary-data
- Language: Python
- Size: 426 KB
- Stars: 11
- Watchers: 15
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
legipy
======
[](https://travis-ci.org/regardscitoyens/legipy)
[](https://codecov.io/gh/regardscitoyens/legipy)
**⚠️ since the new update of legifrance (2020), there's anti-scrapping and the layout changed making this library obsolete for now**
Python client for the `legifrance.gouv.fr` website.
CLI usage
---------
The command-line script `legipy` gives access to service commands from the command line and outputs data in JSON format.
## Legislature
Access to the [legislature](https://www.legifrance.gouv.fr/dossiers_legislatifs.jsp).
### List legislatures
```bash
legipy legislatures
```
### List published laws
```bash
legipy published_laws [--legislature=CURRENT]
```
### List pending law projects
```bash
legipy law_projects [--legislature=CURRENT]
```
### List pending law proposals
```bash
legipy law_proposals [--legislature=CURRENT]
```
### List common laws ("[Lois dites](https://www.legifrance.gouv.fr/affichSarde.do?reprise=true&page=1&idSarde=SARDOBJT000007106573)")
```bash
legipy common_laws
```
### Show specific law
```bash
legipy law JORFDOLE000024106525
```
## Applicable codes
Access to the [applicable codes](https://www.legifrance.gouv.fr/initRechCodeArticle.do).
### List applicable codes
```bash
legipy codes
```
### Show code details
```bash
legipy code LEGITEXT000006074075
legipy code --date-pub 2018-05-01 LEGITEXT000006074075
```
### Show code section details
```bash
legipy code_section LEGITEXT000006074075 LEGISCTA000006107991
legipy code --date-pub 2018-05-01 LEGITEXT000006074075 LEGISCTA000006107991
```