搜索引擎API Bing / Google / Yahoo
Project description
項目說明
https://github.com/vito1317/search-engine-tool-vito1317
項目的 Python 版本。原項目使用 Node + Puppeteer,Python 版本使用 Selenium + requests + BeautifulSoup4。
此搜索引擎Api由 vito 柯瑋宸發布
安裝
pip install search-engine-tool-vito1317
使用
from search_engine_tool import google
def test_google():
try: data = google.search("台灣天氣")
for d in data:
print(d)
except Exception as e:
print(e)
if __name__ == '__main__':
test_bing()
使用 request
from search_engine_tool import google
def test_google():
try: data = google.search("台灣天氣", request)
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 wikipedia 支持
search-engine-tool-vito1317
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_vito1317-0.6.6.tar.gz
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 61611e3b67b6bf80eafdd6ee4068096b74b1da5e8fe545a9d7e0ee7056c20200 |
|
| MD5 | 28725cc37abd6f65209e2f4006083545 |
|
| BLAKE2b-256 | 0887342eb8d42851a81786b5debb947b512027a787a37297c0fe705507f4e795 |
Close
Hashes for search_engine_tool_vito1317-0.6.6-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 98c3d6daf411d8a8d2c4f2c138eb9fbfcae63f5887fb7cd08579ea43ce896dbe |
|
| MD5 | c75ffcccc115a522e957e45d4bc7917e |
|
| BLAKE2b-256 | 63e38668019367055cb2ed27781126fa8aed886a91ef7c45e24743940da7afeb |