nosdeputes.fr和nossenateurs.fr的Python API
项目描述
[](https://travis-ci.org/regardscitoyens/cpc-api)
# CPC-API A python api for http://nosdeputes.fr and http://nossenateurs.fr
CPC代表公民议会控制。
在此处查看完整的API文档:https://github.com/regardscitoyens/nosdeputes.fr/blob/master/doc/api.md
## 示例
议员
`python from cpc_api import CPCApi api = CPCApi(legislature='2012-2017') # 立法会综合报告 synthese = api.synthese() # 搜索议员 cope = api.search_parlementaires('Cope')[0][0] # 获取cope的所有信息 all_info = api.parlementaire(cope['slug']) `
2007-2012届参议员和议员...
`python from cpc_api import CPCApi # 使用参议员进行相同的操作 api = CPCApi(ptype='senateur') larcher = api.search_parlementaires('larcher')[0][0] # '或使用立法会 2007-2012' api = CPCApi(ptype='depute', legislature='2007-2012') morano = api.search_parlementaires('morano')[0][0] # ... `
项目详情
cpc_api-0.1.6.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | e1ced8cc5b86a523af73f0ad30662bb4575672a5ea5a1a7fe3dc5ff3402b6184 |
|
MD5 | 132ae5c0b052a42f39dad505e631a364 |
|
BLAKE2b-256 | ef399e9ef9ef3381a95cc00ee7de97f092b7d49c6ce5ec4d991c2e58f7db8ac6 |