用于与crunchbase 2.0api交互的库
python-crunchbase的Python项目详细描述
crunchbase
这是一个用于crunchbase 2.0api的python库。
API文档
crunchbase api为 Crunchbase公司。响应是json格式的。
设置
pip install git+git://github.com/anglinb/python-crunchbase
启动和运行
导入crunchbase,然后用api初始化crunchbase对象 钥匙
from crunchbase import CrunchBase cb = CrunchBase('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
下面是搜索组织的示例。
cb.getOrganizations('Dropbox', page='1', order=...)
这将以json格式返回组织搜索查询的结果。 关键字参数(page, order, ... )将转换为 获取变量并与请求一起传递。检查文档 查找哪些参数可用于哪个api端点。
现在您可以对 CrunchBase 2.0 API
getOrganizations(query) #This returns result of an organization search query in JSON format. getOrganization(path) #This returns result of an organization search query in JSON format. getPeople() #This returns result of people in JSON format. getPerson(path) #This returns result of a single person getProducts() This returns result of products in JSON format. ...
查看crunchbase/crunchbase.py以获取所有可能的 功能。这些方法与 Crunchbase API Documentation。