Metadata-Version: 2.1
Name: search-terminal
Version: 0.0.2
Summary: This is a program that allows you to search the web from the comfort of your terminal.
Home-page: https://github.com/Dr-GameDev/Google-Search-Package
Author: Babalo Majiyezi
Author-email: raymondbabalo5@gmail.com
License: MIT
Keywords: search,web search,terminal search
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: argparse
Requires-Dist: requests
Requires-Dist: html2text


# Google Search CLI

This is a simple command-line tool that allows you to search Google from your terminal.

## Installation

To install, simply run `pip install search-terminal==0.0.1`.

## Usage

To use, simply run `search <query>`. For example, to search for "cats", you would run `search cats`.

The results will be printed to the terminal in JSON format.

If your search is multi-worded you might alternate to wrapping the text in double quotes. For example, to search for "cats and mice", you would run `search "cats and mice"`.


## Code Explanation

The code is relatively simple. The main function first checks to make sure that the user has provided a search query. If they have, it calls the `google_searcher()` function, which performs the search and returns the results. The results are then printed to the terminal in JSON format.

The `google_searcher()` function first makes a request to the Google search engine, using the user's query as the search term. If the request is successful, the function parses the HTML response and extracts the search results. The search results are then returned to the main function.

## Conclusion

This is a simple but useful tool that can be used to search Google from the command line. It is easy to use and install, and the code is well-commented and easy to understand.

