Asynchronous engine for search engines
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.3.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.3.tar.gz.
File metadata
- Download URL: aioengine-python-0.0.3.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 |
1b761f2e4ce05bd0c3c598961c53793ab1cd174d1035bde807423e5b1786acbc
|
|
| MD5 |
7ea8b97d75b26fb7dffa2c16f1ec7fdb
|
|
| BLAKE2b-256 |
31fef1027dd12011a691e88d111d99f5e74718dde09286ee549392b5204666e8
|
File details
Details for the file aioengine_python-0.0.3-py3-none-any.whl.
File metadata
- Download URL: aioengine_python-0.0.3-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 |
55cb3c53fb51cf3e85e0430c5ce4977e3c1371ec948fedabd1034c90b865e9d0
|
|
| MD5 |
49ada3d11f12f5dd933e82920f21a831
|
|
| BLAKE2b-256 |
bd81841e14a284af3eb9a87d72fec6a7bbff030959002a541f6ebf9caf84cd32
|