Skip to main content

Asynchronous engine for search engines

Project description

Dark Theme
Dark Theme
Light Theme
Light Theme

aioengine

An asynchronous library for using search engines in Python.

⭐ Features

  • Asynchronous
  • 🚀 Simple
  • 📈 Scalable

📌 Examples

🔹 Example 1

import asyncio
from aioengine import GoogleEngine, EngineError

async def main():
    api_key = "ABCDEFGHIJKLMNOP"
    cse_id = "1234567890"
    engine = GoogleEngine(api_key, cse_id)
    
    try:
        query = "python"
        results = await engine.search(query, num=5)
        for result in results:
            print(result.link)

    except EngineError as error:
        error.display_error()
        
if __name__ == "__main__":
    asyncio.run(main())

📂 Directory: example_google_1.py


🔹 Example 2

import asyncio
from aioengine import GoogleEngine, EngineError

async def main():
    api_key = "ABCDEFGHIJKLMNOP"
    cse_id = "1234567890"
    
    async with GoogleEngine(api_key, cse_id) as engine:
        try:
            query = "python"
            results = await engine.search(query, num=5)
            for result in results:
                print(result.link)

        except EngineError as error:
            error.display_error()

if __name__ == "__main__":
    asyncio.run(main())

📂 Directory: example_google_2.py



📂 Project Structure


Installation:

pip install aioengine-python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioengine-python-0.0.4.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioengine_python-0.0.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file aioengine-python-0.0.4.tar.gz.

File metadata

  • Download URL: aioengine-python-0.0.4.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for aioengine-python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b4651043041f2e5fbafc51bcb17bd5cd548913a80cb15c97c30ba53309fcab4a
MD5 fb333023ef109c56c4fe3f864c13869f
BLAKE2b-256 f68c33a6e223c79c3b016dfcc84349170d3e6b65959c280438e8c68f4302c4b6

See more details on using hashes here.

File details

Details for the file aioengine_python-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for aioengine_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7efe79c3ac2b8c49e05af0c13ec7c387c79d3e5e3d1128f1679ba3675134fd12
MD5 a3e936905abae762f52aa811c7ece73c
BLAKE2b-256 96c3e92e72cd4a07146f22ec9ea96cc4e5983dc32472de9724074adb0220bc82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page