To install and use the Whoogle Search package with Python, follow these steps:
1. Prerequisites
Ensure you have the following installed on your system:
- Python 3 (required)
pip (Python package manager)
libcurl4-openssl-dev and libssl-dev (for Linux systems)
Installing Required Dependencies
- macOS:
bash
brew install openssl curl-openssl
- Ubuntu:
bash
sudo apt-get install -y libcurl4-openssl-dev libssl-dev
- Arch Linux:
bash
sudo pacman -S curl openssl
2. Installation
You can install Whoogle Search using pip or manually from the source repository.
Option 1: Install via pip
Run the following command:
bash
pip install whoogle-search
This will download and install the package along with its dependencies.
Option 2: Install From Source
-
Clone the repository:
bash
git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
-
Create a Python virtual environment (optional but recommended):
bash
python3 -m venv venv
source venv/bin/activate
-
Install dependencies:
bash
pip install -r requirements.txt
-
Run the app:
3. Running the Application
Once installed, you can start the Whoogle Search application using the following command:
bash
whoogle-search
Optional Arguments
You can customize the behavior of the app with these optional arguments:
| Argument | Description |
|---|
--port <port number> | Specifies the port to run on (default is 5000) |
--host <ip address> | Specifies the host address (default is [Redacted IPAddress]) |
--https-only | Enforces HTTPS redirects for all requests |
--userpass <username:password> | Sets a username/password for basic auth |
--proxyauth <username:password> | Sets username/password for a proxy |
| `--proxytype <socks4 | socks5 |
--proxyloc <location:port> | Sets proxy location for all connections |
Example:
bash
whoogle-search --port 8080 --https-only --userpass admin:password
4. Accessing the Application
After starting the application, you can access it in your web browser at:
code
http://127.0.0.1:5000
If you specified a different host or port, replace [Redacted IPAddress] and 5000 with your custom values.
5. Deploying to Production
For production use, you can deploy Whoogle Search using:
- [Redacted Person]
- Systemd (for Linux-based systems)
- Cloud Platforms (e.g., Heroku, Render, Fly.io)
Refer to the README section on deployment for detailed instructions.
6. Troubleshooting
If you encounter issues, ensure:
-
All dependencies are installed (pip install -r requirements.txt).
-
Required libraries (libcurl4-openssl-dev, libssl-dev, etc.) are available.
-
Use --debug mode for detailed logs:
bash
whoogle-search --debug
That’s it! You now have Whoogle Search installed and running. 🎉