a35hie/WebSearchCli

PythonApache-2.0

SearchUtil

Python-based utility for searching different providers. Recommended to be used from the shell.

Supported Providers

  • ChatGPT
  • Google
  • Yandex
  • Brave Search
  • DuckDuckGo
  • Ecosia
  • Startpage
  • Perplexity

Installation

Download the search util to an easily-available place. Then, either run it directly with Python (make sure that's installed with brew install python), or alias it:

~/.zshrc:

alias search="python /path/to/SearchUtil/main.py"

You can also alias different providers individually, e.g:

alias search="python /path/to/SearchUtil/main.py"
alias google="search w/ggl"

Usage

By default, the utility will use ChatGPT. If you want to use a specific provider, insert one of these in the beginning of your query:

  • Google: w/ggl
  • Yandex: w/yan
  • Brave Search: w/brv
  • DuckDuckGo: w/ddg
  • Ecosia: w/eco
  • Startpage: w/srt
  • Perplexity: w/ppx

Example: search w/ddg cute cat images