# Qdata - Python SDK for index and search
### 为什么给项目改了名
* 想做一个提供更多数据的SDK包,但不一定有时间。。。
* 老的代码包可以在<a href="https://github.com/longxiaofei/spider-BaiduIndex/tree/old_baiduindex">old_baiduindex</a>里找到
* 会根据我自己个人的数据需求,往里面添加不同的数据源,如果恰好帮助到你,很开心
* 老的数据源会尽力维护
### Data Source
* http://index.baidu.com/
* http://www.baidu.com/
* https://www.tianyancha.com/advance/search
### Install
```shell script
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](https://starchart.cc/longxiaofei/spider-BaiduIndex.svg)](https://starchart.cc/longxiaofei/spider-BaiduIndex)
Raw data
{
"_id": null,
"home_page": "https://github.com/longxiaofei/spider-BaiduIndex",
"name": "qdata",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "data sdk",
"author": "longxiaofei",
"author_email": "libra.19951002@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7f/c7/864d698fda062616a9770de9ccb3ae2ba50d0b39256bde2e0dd87ac5f6d3/qdata-0.2.4.tar.gz",
"platform": null,
"description": "# Qdata - Python SDK for index and search\n\n### \u4e3a\u4ec0\u4e48\u7ed9\u9879\u76ee\u6539\u4e86\u540d\n\n* \u60f3\u505a\u4e00\u4e2a\u63d0\u4f9b\u66f4\u591a\u6570\u636e\u7684SDK\u5305,\u4f46\u4e0d\u4e00\u5b9a\u6709\u65f6\u95f4\u3002\u3002\u3002\n* \u8001\u7684\u4ee3\u7801\u5305\u53ef\u4ee5\u5728<a href=\"https://github.com/longxiaofei/spider-BaiduIndex/tree/old_baiduindex\">old_baiduindex</a>\u91cc\u627e\u5230\n* \u4f1a\u6839\u636e\u6211\u81ea\u5df1\u4e2a\u4eba\u7684\u6570\u636e\u9700\u6c42\uff0c\u5f80\u91cc\u9762\u6dfb\u52a0\u4e0d\u540c\u7684\u6570\u636e\u6e90\uff0c\u5982\u679c\u6070\u597d\u5e2e\u52a9\u5230\u4f60\uff0c\u5f88\u5f00\u5fc3\n* \u8001\u7684\u6570\u636e\u6e90\u4f1a\u5c3d\u529b\u7ef4\u62a4\n\n### Data Source\n\n* http://index.baidu.com/\n* http://www.baidu.com/\n* https://www.tianyancha.com/advance/search\n\n### Install\n\n```shell script\npip uninstall pycrypto # \u907f\u514d\u4e0epycryptodome\u51b2\u7a81\npip install --upgrade qdata\n```\n\n### Examples\n\n#### \u767e\u5ea6\u6307\u6570\n`./examples/test_baidu_index.py`\n\n\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c\u767e\u5ea6\u6307\u6570\u7684\u83b7\u53d6\n`./examples/baidu_index_best_practice.py`\n\n#### \u767e\u5ea6\u641c\u7d22\n`./examples/test_baidu_search.py`\n\n#### \u767e\u5ea6\u767b\u5f55(\u83b7\u53d6\u767e\u5ea6Cookie)\n`./examples/test_baidu_login.py`\n\n* \u76ee\u524d\u53ea\u63d0\u4f9b\u4e8c\u7ef4\u7801\u767b\u5f55\uff0c\u5bc6\u7801\u8d26\u53f7\u767b\u5f55\u4e5f\u53ef\u4ee5\u505a\uff0c\u4f46\u4e0d\u505a\uff0c\u56e0\u4e3a\u6ca1\u5fc5\u8981\u3002\n* \u5e78\u597d\u5de5\u4f5c\u4e0d\u505a\u722c\u866b\uff0c\u5fc3\u592a\u7d2f\u4e86\u3002\n\n#### \u5929\u773c\u67e5\n`./examples/test_tianyancha.py`\n\n* \u8001\u5a46\u505a\u6c47\u62a5\u7740\u6025\u7528\n\n### Changelog\n\n* 2021/03/25 \u4e0a\u7ebf\n* 2021/03/26 \u66f4\u65b0\u767e\u5ea6\u767b\u5f55\u529f\u80fd\n* 2021/04/07 \u767e\u5ea6\u6307\u6570\u65b0\u589e:\u5b9e\u65f6\u767e\u5ea6\u6307\u6570\n* 2021/04/13 \u6dfb\u52a0\u5929\u773c\u67e5\u9ad8\u7ea7\u641c\u7d22\u516c\u53f8\u6570\u6570\u636e\n* 2021/05/18 \u4fee\u6b63\u6253\u5305\u95ee\u9898\n* 2022/05/12 \u767e\u5ea6\u6307\u6570\u6dfb\u52a0Cipher-Text(\u4e0d\u786e\u5b9a\u90e8\u5206\u903b\u8f91)\n* 2022/05/16 \u4e00\u4e9b\u5c0f\u7684\u6539\u52a8\n* 2022/05/30 \u4fee\u6b63\u767e\u5ea6\u6307\u6570\u52a0\u5bc6\u903b\u8f91\n* 2022/09/06 \u6dfb\u52a0\u68c0\u67e5\u5173\u952e\u8bcd\u65b9\u6cd5\u3001\u6dfb\u52a0\u6700\u4f73\u5b9e\u8df5\u811a\u672c\n\n\n### Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/longxiaofei/spider-BaiduIndex.svg)](https://starchart.cc/longxiaofei/spider-BaiduIndex)\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Python SDK for getting data quickly",
"version": "0.2.4",
"split_keywords": [
"data",
"sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dea422c5d15bf2b5ec60951f1712bc66f04907997bf3d024df3a641378529a5a",
"md5": "086a8fdca943a11a8995c7b4e7d62cea",
"sha256": "a909da1d411e361e6e446601261813c8e6d58a9708a11011d187f696935a50e9"
},
"downloads": -1,
"filename": "qdata-0.2.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "086a8fdca943a11a8995c7b4e7d62cea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 63810,
"upload_time": "2023-04-12T05:53:51",
"upload_time_iso_8601": "2023-04-12T05:53:51.452144Z",
"url": "https://files.pythonhosted.org/packages/de/a4/22c5d15bf2b5ec60951f1712bc66f04907997bf3d024df3a641378529a5a/qdata-0.2.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7fc7864d698fda062616a9770de9ccb3ae2ba50d0b39256bde2e0dd87ac5f6d3",
"md5": "27372b15d1f5efa98bbebaaad955e2b3",
"sha256": "e889e56d4538c5de952137de5ebe205f65d227ee615172460305574b93e0899d"
},
"downloads": -1,
"filename": "qdata-0.2.4.tar.gz",
"has_sig": false,
"md5_digest": "27372b15d1f5efa98bbebaaad955e2b3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 57595,
"upload_time": "2023-04-12T05:53:53",
"upload_time_iso_8601": "2023-04-12T05:53:53.588979Z",
"url": "https://files.pythonhosted.org/packages/7f/c7/864d698fda062616a9770de9ccb3ae2ba50d0b39256bde2e0dd87ac5f6d3/qdata-0.2.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-12 05:53:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "longxiaofei",
"github_project": "spider-BaiduIndex",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "qdata"
}