This is a basic Python script that allows users to perform a terminal-based internet search using the Google search engine. It utilizes the googlesearch library to fetch search results and display them in the terminal.
-
Clone the Repository:
git clone https://github.com/aaryansinhaa/toogle cd toogle -
Run the Script:
python toogle.py
The script will prompt you to enter a search query. Type 'exit' to quit the search engine.
-
Enter Search Query:
- Enter the search query when prompted.
-
Specify Number of Results:
- Optionally, you can specify the number of results to display. Press Enter to use the default (5 results).
-
View Search Results:
- The script will fetch and display the search results in the terminal.
-
Exit the Search Engine:
- Type 'exit' at the search query prompt to exit the search engine.
- This script relies on the
googlesearch-pythonlibrary. You can install it using:pip install googlesearch-python
This project is licensed under the MIT License.
Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are welcome!
- The script uses the
googlesearchlibrary, and credit goes to its developers.
This script is for educational purposes and uses the Google search engine. Ensure compliance with Google's terms of service when using this script.
Happy searching!