搜索引擎API Bing / Google / Yahoo / Baidu
Project description
项目说明
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for search_engine_tool-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2217019e9109fd77f0d5695874f5ab507ab34b2ea3bf4b32ece97bc38976ca |
|
MD5 | 1f16ce3cb1142fe4831b4792b6b9a6ac |
|
BLAKE2b-256 | 6fbf16ea782c3b403b8d3e93cdc43f2a16e43f2e2ce10708b151f376a9c14e74 |