Skip to main content

項目說明

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_vito1317 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_google() 

使用 request

from search_engine_tool_vito1317 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_google() 

返回格式

[ 
    {
    "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

Metadata

Release files for search-engine-tool-vito1317 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for search-engine-tool-vito1317 0.7.0
File Size Uploaded Provenance Actions
search_engine_tool_vito1317-0.7.0.tar.gz 5.5 kB Without provenance Details for search_engine_tool_vito1317-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for search-engine-tool-vito1317 0.7.0
File Interpreter ABI Platform Actions
search_engine_tool_vito1317-0.7.0-py3-none-any.whl Python 3 none any Details for search_engine_tool_vito1317-0.7.0-py3-none-any.whl

Total release size: 13.5 kB

Release files / search_engine_tool_vito1317-0.7.0.tar.gz

Download URL search_engine_tool_vito1317-0.7.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
38120cc827c831458cc37fb38007ba05a3f4a6a2a4a229c97d36d18389c10f62
BLAKE2b-256 checksum
How to use checksums
717498ad9d6049279b431ec5c28c9aef02ccd1ce7875790d10dc1e98dd6fef36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / search_engine_tool_vito1317-0.7.0-py3-none-any.whl

Download URL search_engine_tool_vito1317-0.7.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef84d760729f5ce977af348ea7b3698ae224aadf786e3729a108c09244de9264
BLAKE2b-256 checksum
How to use checksums
42016a8a29dc6bea059404ce3821559b456f58246c694e539697255eb168afa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Security for search-engine-tool-vito1317 0.7.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page