Skip to main content

Investment

Project description

smoothnlp_api

公共数据API服务

Install 安装

pip install smoothnlp_api>=0.1.5

Usage 使用

Set Up

import smoothnlp_api
smoothnlp_api.config.setAuth(" YOUR Secret ID ",  ## 配置秘钥
                             " YOUR Secret KEY ")

Call API

## 创建对应的 API Instance
api_instance = smoothnlp_api.InvestmentApi()

## 配置调用Query参数
param = {"year":"2019"} ## 注意, 不同参数可能不同, 具体详情请参见接口文档
api_response = api_instance.get_investment(param) ## 返回结果为parse好的json格式, 大部分为python原生dict

APIs 接口详情

投资事件

smoothnlp_api.InvestmentApi()具体文档 | 购买

参数:

名称 类型 描述 必填 默认值
cate1 str 行业一级类目
cate2 str 行业二级类目
company_name str 企业工商名称
product_name str 项目名称
year str 融资年份, 如: 2019

注:

  • 目前支持的行业以及类目有: '金融', '旅游', '广告营销', '教育', '新工业', '本地生活', '医疗健康', '房产服务', '电子商务', '工具软件', '文娱传媒', '硬件', '社交网络', '农业', '体育运动', '游戏', '物流', '汽车交通', '企业服务'
  • 默认单次返回最多5条数据.

新闻资讯

smoothnlp_api.NewsApi() | 具体文档 | 购买

参数:

名称 类型 描述 必填 默认值
company_kw str 公司简称或全称 腾讯
start_date str 开始日期 2019-06-01
end_date str 接入日期 2020-12-30
offset int 开始条数
limit int 返回条数

示例

>> import smoothnlp_api
>> api_instance = smoothnlp_api.NewsApi()
>> api_instance.get_company_news(company_kw="阿里巴巴")

企业工商

smoothnlp_api.CompanyApi() | 具体文档

参数

名称 类型 描述 必填 默认值
name str 公司(工商)名称

示例

>> import smoothnlp_api
>> api_instance = smoothnlp_api.CompanyApi()
>> api_instance.get_company_fuzzy(name='今日头条')
>> api_instance.get_company_exact(name="深圳市腾讯计算机系统有限公司")

声明

如果你对以上数据API感兴趣, 我们对学术研究开放我们的数据, 欢迎联系:contact@smoothnlp.com; 我们将免费分配你对应接口的秘钥

商务合作请联系 business@smoothnlp.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smoothnlp_api-0.1.5.linux-x86_64.tar.gz (29.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page