A simple cross-platform CLI tool to search the web from your terminal
Project description
search-cli-pro
A simple cross-platform CLI tool to search the web directly from your terminal. Supports multiple search engines, interactive preview, and opens results in your favorite browser.
Features
-
Search across Google, Bing, DuckDuckGo, YouTube, Wikipedia, GitHub, Reddit, StackOverflow, and more.
-
Interactive mode for DuckDuckGo, wikipedia, github , arxiv : preview top results, select multiple links, and open them at once.
-
Works on macOS, Linux, and Windows.
-
Optionally specify which browser to open (-a) — Safari, Chrome, Firefox, etc.
-
Automatically clears the terminal before/after searches for a clean interface.
-
Lightweight and easy to use.
Installation
pip install search-cli-pro
Or install directly from source:
git clone https://github.com/Hrishi11572/search-cli-pro.git
cd search-cli-pro
pip install -e .
Usage
Search google:
search google "What's the weather today?"
Search Youtube:
search youtube "lofi hip hop beats"
Search wikipedia:
search wikipedia "Python programming"
Open with Safari (macOS):
search google "machine learning" -a Safari
Interactive mode (DuckDuckGo , Wikipedia, Github , arxiv)
search duckduckgo "python dataclasses" -i
List supported search engines:
search --list
Supported Search Engines
search-cli-pro currently supports the following engines:
General search / news
- Google: search google "query"
- Bing: search bing "query"
- DuckDuckGo: search duckduckgo "query"
- Yahoo: search yahoo "query"
- Qwant (privacy-focused): search qwant "query"
Academic / Scientific
- Google Scholar: search scholar "query"
- arXiv: search arxiv "query"
- PubMed: search pubmed "query"
- Wikipedia: search wikipedia "query"
Shopping / Marketplaces
- Amazon: search amazon "query"
- eBay: search ebay "query"
Social Media
- Twitter: search twitter "query"
- Instagram: search instagram "query"
Q&A / Forums
- Quora: search quora "query"
- Reddit: search reddit "query"
Programming / Developer
- PyPI: search pypi "query"
- npm: search npm "query"
- StackOverflow: search stackoverflow "query"
- GitHub: search github "query"
Maps / Travel
- Google Maps: search maps "query"
Video / Streaming
- Vimeo: search vimeo "query"
- YouTube: search youtube "query"
Platform notes
- macOS : Supports custom browsers via -a
- Linux : Tries given browser, falls back to default if not found
- Windows : Opens in default browser (custom -a not supported yet)
Development
Clone the repo and install in editable mode:
git clone https://github.com/Hrishi11572/search-cli-pro.git
cd search-cli-pro
pip install -e .
Then run:
search google "python argparse"
search duckduckgo "machine learning" -i
License
MIT License - free to use, modify and share
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file search_cli_pro-0.1.5.tar.gz.
File metadata
- Download URL: search_cli_pro-0.1.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03e6c6c25518a0af751dc0f75bb736809f2a2ce5ef6fc0b7934c4d9dbeeab01c
|
|
| MD5 |
5176dbfb53334784131a5a77956b1f45
|
|
| BLAKE2b-256 |
9564ea2066a5a175ebf5ebd84cf01c5ea0ffa3122485fbf93584aa822aaf792c
|
File details
Details for the file search_cli_pro-0.1.5-py3-none-any.whl.
File metadata
- Download URL: search_cli_pro-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c45350b7496cb128f48c7e1d8213b6c07b77b86163ca70409c9d5080a81dcb9c
|
|
| MD5 |
bf6fc2a0f3c348f02daa0c9c04e89ae6
|
|
| BLAKE2b-256 |
940e2f3456b4cca910835ccefa78ec7b9debbceb8bc80765f2876ad92e2f7da4
|