No project description provided
Project description
|
Dark 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.2.tar.gz
(13.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioengine-python-0.0.2.tar.gz.
File metadata
- Download URL: aioengine-python-0.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9390ed11deff7a92ac6593f0954708d54bd814c36030025225ec05e4bfbac4ab
|
|
| MD5 |
edf0272a1b72998230573f6ace38436d
|
|
| BLAKE2b-256 |
6aec68df1aabb3136a0aab65bc799cb5fa566846beee08748fad17819ee14688
|
File details
Details for the file aioengine_python-0.0.2-py3-none-any.whl.
File metadata
- Download URL: aioengine_python-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2da2c1f97239b48616cad7f43042865f99cd519aeb069d6055952c36d63e0e5
|
|
| MD5 |
08e885234e3387331048b7a9e2d5f434
|
|
| BLAKE2b-256 |
971bb4d1c00359db42ab4ed8a39b19a2dd8b5653771da9177a276d065ea6c354
|