Skip to main content

Qdata - Python SDK for index and search

为什么给项目改了名

  • 想做一个提供更多数据的SDK包,但不一定有时间。。。
  • 老的代码包可以在old_baiduindex里找到
  • 会根据我自己个人的数据需求,往里面添加不同的数据源,如果恰好帮助到你,很开心
  • 老的数据源会尽力维护

Data Source

Install

pip uninstall pycrypto  # 避免与pycryptodome冲突
pip install --upgrade qdata

Examples

百度指数

./examples/test_baidu_index.py

可以参考以下代码进行百度指数的获取 ./examples/baidu_index_best_practice.py

百度搜索

./examples/test_baidu_search.py

百度登录(获取百度Cookie)

./examples/test_baidu_login.py

  • 目前只提供二维码登录,密码账号登录也可以做,但不做,因为没必要。
  • 幸好工作不做爬虫,心太累了。

天眼查

./examples/test_tianyancha.py

  • 老婆做汇报着急用

Changelog

  • 2021/03/25 上线
  • 2021/03/26 更新百度登录功能
  • 2021/04/07 百度指数新增:实时百度指数
  • 2021/04/13 添加天眼查高级搜索公司数数据
  • 2021/05/18 修正打包问题
  • 2022/05/12 百度指数添加Cipher-Text(不确定部分逻辑)
  • 2022/05/16 一些小的改动
  • 2022/05/30 修正百度指数加密逻辑
  • 2022/09/06 添加检查关键词方法、添加最佳实践脚本

Stargazers over time

Stargazers over time

Download files

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

Source Distribution

qdata-0.3.0.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qdata-0.3.0-py3-none-any.whl (63.8 kB view details)

Uploaded Python 3

File details

Details for the file qdata-0.3.0.tar.gz.

File metadata

  • Download URL: qdata-0.3.0.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.11.14

File hashes

Hashes for qdata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ea929ff25181f8d137502ba0ef062043e8d593540fdedd198329cb4ad676c77c
MD5 6b00a8ef0710ee6c48528301e05e2e9b
BLAKE2b-256 372cfa78e562ca1715820447d7e0f093c160f4edadf271c1ac25cb055d1c8c25

See more details on using hashes here.

File details

Details for the file qdata-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qdata-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 63.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.11.14

File hashes

Hashes for qdata-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea3e8b5efa549f44ed544378ac92070004b351ed1d9e15dbcf33501ce37b0738
MD5 cb113a54f93ad564c212b9a8e7543220
BLAKE2b-256 3d96f20941c1cb47a0c69b9c16a6809f33fb1ed56a7bec845f7adfd48dfdaa00

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page