用于nosdeputes.fr和nossenateurs.fr的python api

cpc_api的Python项目详细描述


[![生成状态](https://travis-ci.org/regardscitoyens/cpc-api.svg)](https://travis-ci.org/regardscitoyens/cpc-api

#CPC-API标准 用于http://nosdeputes.frhttp://nossenateurs.fr

的python api

cpc用于controle parlementaire citoyens

请参阅此处的完整API文档:https://github.com/regardscitoyens/nosdeputes.fr/blob/master/doc/api.md

##示例

  • Députes

`python from cpc_api import CPCApi api = CPCApi(legislature='2012-2017') # synthese of legislature synthese = api.synthese() # search for a depute cope = api.search_parlementaires('Cope')[0][0] # get all info of cope all_info = api.parlementaire(cope['slug']) `

  • Sénateurs & députés legislature 2007-2012…

`python from cpc_api import CPCApi # do the same with senateurs api = CPCApi(ptype='senateur') larcher = api.search_parlementaires('larcher')[0][0] # 'or with legislature 2007-2012' api = CPCApi(ptype='depute',legislature='2007-2012') morano = api.search_parlementaires('morano')[0][0] # ... `

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
javascript如何找到socket。同一局域网上的IO服务器?   将Java代码格式化为Word/RTF格式   java学习对象以及如何将分配的变量封装到私有变量   java Websocket客户端不在Tomcat中工作   java如何在点击按钮时打开本机表情键盘?   java使用哪个Maven GlassFish插件?   Eclipse Java构建路径不允许添加外部JAR   继承Java6集合。勾选适当的用法   JavaApacheDateUtils:使用多个模式解析日期   java hibernate如何生成查询?   具有id或链接的java Dropbox下载文件或文件夹   java模态对话框未在PrimeFaces 5上显示   java将类对象转换为人类可读的字符串   更新数据库中字段的java通用方法   java无法通过Apache Tomcat访问网络文件夹