A terminal UI for Search Engine APIs.
- Clone the project
git clone git@github.com:joelboersma/tui-search.git-
Set up one of the available search engines
-
Build and run the project
go build && ./tui-searchThe Brave Search API has simple setup, allows searching the entire internet, and can be used for free.
- Log into the Brave Search API Dashboard, or create an account if you don't have one already.
- Create an API key for TUI Search.
- Set the
BRAVE_API_KEYenvironment variable (either in a.envfile or in the shell) to your API key.
Google Programmable Search can be an effective tool for searching sites that you specify when creating the engine. However, Google is phasing out generally-available support for full web search, and as a result all new engines must be configured using the "Sites to search" feature (source).
If you want to search the full web and want simple setup, use Brave Search instead.
- Create a programmable search engine and a related Google Cloud project.
- Define the following environment variables, (either in a
.envfile or in the shell):GOOGLE_API_KEY: The Google Cloud project's API keyGOOGLE_CUSTOM_SEARCH_CONTEXT: The search engine's ID (context)