A quick example of how to search Google using their API.
Httpx for http and typer for the CLI for convenience.
pip install -r requirements.txt
You will need a search engine id and an API key.
Add those to your environment.
export API_KEY=YOUR_API_KEY
export SEARCH_ENGINE_ID=YOUR_SEARCH_ENGINE_ID
python main.py "your search"