项目说明
https://github.com/bravekingzhang/search-engine-tool 项目的python版本
原项目使用 node + puppeteer
python版本使用 selenium
安装
pip install search-engine-tool
使用
from search_engine_tool import bing
def test_bing():
try:
data = bing.search("深圳天气")
for d in data:
print(d)
except Exception as e:
print(e)
if __name__ == '__main__':
test_bing()
返回格式
[
{
"abstract": "Web目前天氣. PM2:04. 84° F. RealFeel® 93°. RealFeel Shade™ 89°. 空氣品質 不佳. 風 西南偏西 6英里/小时. 風速 6英里/小时. 陰 更多詳情.",
"href": "https://www.accuweather.com/zh/cn/shenzhen/58194/weather-forecast/58194",
"title": "深圳, 廣東省, 中國 三日天氣預報 | AccuWeather"
},
...
]
支持搜索引擎
Bing
Google (需要调用方自身能够访问)
Yahoo
Todo
1 处理人机验证
2 支持翻页参数
3 支持 Badiu / Sogou / so.cn 国内搜索网站
4 百度百科
5 wikipedia 支持
Metadata
Release files for search-engine-tool 0.3.0
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 |
|---|---|---|---|---|
| search-engine-tool-0.3.0.tar.gz | 4.3 kB | Without provenance | Details for search-engine-tool-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| search_engine_tool-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for search_engine_tool-0.3.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / search-engine-tool-0.3.0.tar.gz
| Download URL | search-engine-tool-0.3.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5e3f5330b8f6a39329920e6ad3a1b6da21271cb0ff64a237502fec0fbf8c6fa
|
|
BLAKE2b-256 checksum How to use checksums |
a0b8fe8e410c1c84a885822a104848a60236e079866b1cbe6c1451b107b188ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / search_engine_tool-0.3.0-py3-none-any.whl
| Download URL | search_engine_tool-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
611e764e2ecdc90f7d6f7221bf1d7d6ecb294337a4d2540ab3ebee66f782c840
|
|
BLAKE2b-256 checksum How to use checksums |
cd439ca2c3381e8b1678639b08ade765ccebdcc87df46f0819661386a39a4038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Security for search-engine-tool 0.3.0
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.