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
Metadata
Release files for smoothnlp-api 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smoothnlp_api-0.1.5.linux-x86_64.tar.gz | 29.6 kB | Without provenance | Details for smoothnlp_api-0.1.5.linux-x86_64.tar.gz |
Release files / smoothnlp_api-0.1.5.linux-x86_64.tar.gz
| Download URL | smoothnlp_api-0.1.5.linux-x86_64.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf12a95bdfa1881b941e2fad84e7085b15f4334a757d4e1ec0837ad6f381f80c
|
|
BLAKE2b-256 checksum How to use checksums |
f9c4f8f239d33384024acb336138c090100910f4ac4912e46a8837563a77c430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
|
Security for smoothnlp-api 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.