|
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
Release files for aioengine-python 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioengine-python-0.0.4.tar.gz | 13.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioengine_python-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 kB
Release files / aioengine-python-0.0.4.tar.gz
| Download URL | aioengine-python-0.0.4.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4651043041f2e5fbafc51bcb17bd5cd548913a80cb15c97c30ba53309fcab4a
|
|
BLAKE2b-256 checksum How to use checksums |
f68c33a6e223c79c3b016dfcc84349170d3e6b65959c280438e8c68f4302c4b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / aioengine_python-0.0.4-py3-none-any.whl
| Download URL | aioengine_python-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7efe79c3ac2b8c49e05af0c13ec7c387c79d3e5e3d1128f1679ba3675134fd12
|
|
BLAKE2b-256 checksum How to use checksums |
96c3e92e72cd4a07146f22ec9ea96cc4e5983dc32472de9724074adb0220bc82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|