Skip to main content

Tianyancha SDK for python, which based on https://open.tianyancha.com/

Project description

tianyancha - 天眼查

Tianyancha SDK for python, which based on https://open.tianyancha.com/

install

pip install tianyancha

Usage

from tianyancha import Tianyancha
token = "TOKEN"
word = "北京百度网讯科技有限公司"

tyc = Tianyancha(token)
ret = tyc.search(word)
{
  "error_code": 0,
  "reason": "ok",
  "result": {
    "items": [
      {
        "regNumber": "110108002734659",
        "regStatus": "在业",
        "creditCode": "91110000802100433B",
        "estiblishTime": "2001-06-05 00:00:00.0",
        "regCapital": "1342128万人民币",
        "companyType": 1,
        "name": "<em>北京百度网讯科技有限公司</em>",
        "id": 22822,
        "orgNumber": "802100433",
        "type": 1,
        "base": "北京",
        "legalPersonName": "梁志祥"
      },
      {
        "regNumber": "440106000623068",
        "regStatus": "在业",
        "creditCode": "91440101675657502F",
        "estiblishTime": "2008-05-20 00:00:00.0",
        "regCapital": "-",
        "companyType": 1,
        "name": "<em>北京百度网讯科技有限公司</em>广州分公司",
        "id": 139572971,
        "orgNumber": "675657502",
        "type": 1,
        "base": "广东",
        "legalPersonName": "沈抖"
      },
      ...
    ],
    "total": 56
  }
}

More usages

ret = tyc.get('/search/2.0', {'word': word})

API Mappings : https://open.tianyancha.com/api_list

Tests

just run pytest

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

tianyancha-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distributions

tianyancha-0.1.1-py3.7.egg (5.9 kB view details)

Uploaded Source

tianyancha-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file tianyancha-0.1.1.tar.gz.

File metadata

  • Download URL: tianyancha-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for tianyancha-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5684571231f4d9b8e3112d7a32c6c03a04f430595ae0ca7c00cd763a9f1198c
MD5 04a59283f60eb5666b3a63acb7d9a223
BLAKE2b-256 83f05bbb54b9afb7ec1fc0759d9f783d477692756a028f2836b3b577f32a20d6

See more details on using hashes here.

File details

Details for the file tianyancha-0.1.1-py3.7.egg.

File metadata

  • Download URL: tianyancha-0.1.1-py3.7.egg
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for tianyancha-0.1.1-py3.7.egg
Algorithm Hash digest
SHA256 734ecb92416cbcbb0788231c0c264d7e34c6af66d6ab11994a2bd11b222fde9b
MD5 50e049177bd830d5ea579546a5fd4dbe
BLAKE2b-256 37dc8972578a4b19ae5819db75c2acb95e29f6c5f9ff15c74889b68d7cee60a2

See more details on using hashes here.

File details

Details for the file tianyancha-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tianyancha-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for tianyancha-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6462ee566a35c976d9ffbdba3482ce1c3d4772b9144e305335ff4a40558ddc
MD5 3225caf52ebc9aea2de50a2a6bb4598a
BLAKE2b-256 67399537faa5313708cafe46b2681da4c313e225bdb02763a9e24dcd4c2bfb51

See more details on using hashes here.

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