# 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/Dr-GameDev/Google-Search-Package",
"name": "search-terminal",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "search,web search,terminal search",
"author": "Babalo Majiyezi",
"author_email": "raymondbabalo5@gmail.com",
"download_url": "",
"platform": null,
"description": "\r\n# Google Search CLI\r\n\r\nThis is a simple command-line tool that allows you to search Google from your terminal.\r\n\r\n## Installation\r\n\r\nTo install, simply run `pip install search-terminal==0.0.1`.\r\n\r\n## Usage\r\n\r\nTo use, simply run `search <query>`. For example, to search for \"cats\", you would run `search cats`.\r\n\r\nThe results will be printed to the terminal in JSON format.\r\n\r\nIf 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\"`.\r\n\r\n\r\n## Code Explanation\r\n\r\nThe 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.\r\n\r\nThe `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.\r\n\r\n## Conclusion\r\n\r\nThis 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.\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "This is a program that allows you to search the web from the comfort of your terminal.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/Dr-GameDev/Google-Search-Package"
},
"split_keywords": [
"search",
"web search",
"terminal search"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a6250a9e3cca5815cdb2d8d3ef5e45df28e9b0e59f62dc5ab6489f9a372ca0fd",
"md5": "5d446865803717c44a45091a2989c1e3",
"sha256": "557bc078cfed2d9d42d088c365c2951159511b87e635d8998de8c80b29039859"
},
"downloads": -1,
"filename": "search_terminal-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5d446865803717c44a45091a2989c1e3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3060,
"upload_time": "2023-10-05T11:25:25",
"upload_time_iso_8601": "2023-10-05T11:25:25.764451Z",
"url": "https://files.pythonhosted.org/packages/a6/25/0a9e3cca5815cdb2d8d3ef5e45df28e9b0e59f62dc5ab6489f9a372ca0fd/search_terminal-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-05 11:25:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Dr-GameDev",
"github_project": "Google-Search-Package",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "search-terminal"
}