An open API service indexing awesome lists of open source software.

https://github.com/sketchycrypt/searchenginebash

Small bash script that allows you to search on the web opening Firefox from the terminal (using DuckDuckGo or Google)
https://github.com/sketchycrypt/searchenginebash

automation bash bash-script duckduckgo-search google linux search-engine

Last synced: about 2 months ago
JSON representation

Small bash script that allows you to search on the web opening Firefox from the terminal (using DuckDuckGo or Google)

Awesome Lists containing this project

README

          

# 🔍 Search Engine Selector Script
![Firefox](https://img.shields.io/badge/Firefox-FF7139?style=for-the-badge&logo=Firefox-Browser&logoColor=white)
![Google Chrome](https://img.shields.io/badge/Google%20Chrome-4285F4?style=for-the-badge&logo=GoogleChrome&logoColor=white)
![Bing](https://img.shields.io/badge/Microsoft%20Bing-258FFA?style=for-the-badge&logo=Microsoft%20Bing&logoColor=white)
![Google](https://img.shields.io/badge/google-4285F4?style=for-the-badge&logo=google&logoColor=white)
![DuckDuckGo](https://img.shields.io/badge/duckduckgo-de5833?style=for-the-badge&logo=duckduckgo&logoColor=white)
![Bash Script](https://img.shields.io/badge/bash_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)

## 📖 Overview
This Bash script allows users to search the web using a preferred search engine directly from the terminal. Users can choose between Google, DuckDuckGo and even Bing (for the 3 people that use Bing), and the script remembers your choice for subsequent searches. Additionally, you can change the search engine or exit the program at any time.
This project was made for fun and to explore what I can do personally with bash scripting.

## ⚙️ Requirements
- A Unix-based operating system with Bash.
- Firefox browser installed (used to open search results).

## 🚧 Known Issues
- ~~Queries with special characters may require additional handling~~.
- May not work with other browsers other than Firefox

## 🔮 Future Improvements
- [x] Add support for more browsers (e.g., Chrome, Edge).
- [ ] Implement error handling for invalid URLs.
- [x] Provide more search engine options (e.g., Bing, Yahoo).
- [x] Enhance query parsing to handle special characters better.

## 📋 Checklist
- [ ] Add support for searching for images too

## 📜 License
This project is open-source and available under the MIT License.

## 👨‍💻 Contributing
Contributions are welcome. Feel free to fork the repository and submit pull requests.