A simple library for searching the web and using internet search engines.
Project description
pyMOA 🌐
pyMOA is a free and open source Python library that implements the MOA metasearch engine as a clean and easy-to-use client for Python. It allows you to seamlessly integrate web search into your Python programs.
The project is currently in alpha development, so there is no pre-built package.
🔍 Key Features
-
Privacy First
No user data is stored or tracked during searches. -
Metasearch Support
Utilizes MOA under the hood to fetch and combine results from multiple search engines simultaneously. -
Ad-free Search Results
Clean, clutter-free search responses. -
Open-source under GPL‑3.0 License
Use, modify, and distribute freely under GPL‑3.0 terms.
🛠️ Build & Install from Source
- Clone the repository:
git clone https://github.com/moa-engine/pyMOA.git
cd pyMOA
- (Optional but recommended) Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Build the package:
python -m build
- Install the wheel package:
pip install dist/pyMOA-0.1.0-py3-none-any.whl
Replace the filename if the version changes.
✅ Usage Example
from pyMOA import search
results = search(
q="privacy search engine",
lang="en",
country="us",
engine=None, # Optional: specify engines like ["google", "duckduckgo"]
page=1,
safesearch=1, # 0: off, 1: moderate, 2: strict
time_range=None, # One of ["day", "week", "month", "year"]
size=5 # Max number of results per engine
)
print(results)
Let me know if you also want to add error handling or CLI usage examples.
🤝 Contributing
- Open an Issue to report bugs or request new features
- Submit a Pull Request to add functionality, improve tests, or update documentation
📄 License
Distributed under the GPL‑3.0 License. You are free to use, modify, and redistribute this library, provided modified source is also shared.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 moa_engine-0.1.0.tar.gz.
File metadata
- Download URL: moa_engine-0.1.0.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4044615e66fc1ce678c85526edb5c99b16bc958cb7600c2ede902b5c4a44f2c
|
|
| MD5 |
7b3c4f76007ffa1bad4ecc8100a89613
|
|
| BLAKE2b-256 |
3a8f8acf97ba3935be31f0623cd0656ccb5de111b3550bb41b342a9ac046d56c
|
File details
Details for the file moa_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moa_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
692b704da835475bb3da6d78845b8a8b8b19137299ac00bb8b9fc4ca6012c27e
|
|
| MD5 |
9f5e69fe6af3de1aa746d9ae565b2585
|
|
| BLAKE2b-256 |
00fa2e7313b83da9454f237a42931817ab51bebebd9d5b19b8d308c6cd229517
|