Skip to main content

Interactive terminal interface for Google AI Mode - get AI-powered answers, code examples, and explanations directly in your command line

Project description

GTalk - Google AI Mode Terminal Query Tool

A powerful command-line interface to interact with Google's AI Mode directly from your terminal. Get AI-powered context aware answers, code examples, and explanations without leaving your command line!

Features

  • Interactive Mode - Keep querying without restarting
  • Context Aware - Context aware subsequent query in interactive mode
  • Code Block Support - Properly formatted code examples
  • Fast - Browser session reused across queries
  • Clean Output - Well-formatted, readable responses
  • Both Modes - Interactive or single-query mode

Installation

From PyPI (Recommended)

pip install gtalk

From Source (Latest Features + Bugfixes)

git clone https://github.com/hissain/gtalk.git
cd gtalk
pip install -e .

Quick Start

Interactive Mode

Simply run:

gtalk

Then start asking questions:

Query> Who is Elon Musk?
Query> How many children he has?
Query> Write a python code for printing first 10 Fibonacci numbers?
Query> quit

Demo Terminal

Demo Terminal

Single Query Mode

gtalk "What is machine learning?"

Usage Examples

Getting Code Examples

Query> Write a Python function for bubble sort

Output includes both explanation and code:

def bubble_sort(arr):
    n = len(arr)
    for i in range(n):
        for j in range(0, n-i-1):
            if arr[j] > arr[j+1]:
                arr[j], arr[j+1] = arr[j+1], arr[j]
    return arr

Learning Concepts

Query> Explain binary trees
Query> What is the difference between TCP and UDP?
Query> How does async/await work in JavaScript?

Quick References

Query> Git command to undo last commit
Query> Python list comprehension syntax
Query> Docker commands cheat sheet

Interactive Commands

Once in interactive mode:

Command Description
[any text] Query Google AI Mode
help Show available commands
clear Clear the screen
quit, exit, q Exit the program
Ctrl+C Force exit
Ctrl+D Alternative exit

Configuration

GTalk uses headless Chrome by default. The browser session is reused across queries for better performance.

Troubleshooting

CAPTCHA Detected

If you see "Google has detected automated access":

  • Wait a few minutes between queries
  • Use a VPN or different network
  • Reduce query frequency

No Summary Found

If no AI summary is returned:

  • Try rephrasing your query
  • Use question format: "What is...", "How to...", "Explain..."
  • Some queries may not trigger AI Mode

Privacy & Rate Limiting

  • GTalk makes direct requests to Google
  • No data is stored or logged by this tool
  • Respect Google's rate limits - avoid excessive automated queries
  • Consider delays between queries if using programmatically

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This tool is for educational and personal use only. It interacts with Google Search's public interface. Please use responsibly and in accordance with Google's Terms of Service.

Acknowledgments

  • Built with Selenium
  • Parsing powered by Beautiful Soup
  • Inspired by the need for quick terminal-based AI assistance

Contact & Support


Made with love by Md. Sazzad Hissain Khan

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

gtalk-1.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gtalk-1.0.6-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file gtalk-1.0.6.tar.gz.

File metadata

  • Download URL: gtalk-1.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gtalk-1.0.6.tar.gz
Algorithm Hash digest
SHA256 ac8801af8e00b5b9fed80e0a22036ad88aa4092d469e4ec61b4cecf08b3e4402
MD5 e06a0d316f41e14927c4331801e3b452
BLAKE2b-256 49de7b3f490f19977ae3ae95fa2f0979c42085b9107619b340ff0f9bfa116eca

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtalk-1.0.6.tar.gz:

Publisher: release.yml on hissain/gtalk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtalk-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: gtalk-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gtalk-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cdffe12fca2125d5552fa237ef0e6406200ebb332e5b071f507602bfd50bd18d
MD5 6a6ba1dec08e9c8ba2590e48c0f8e300
BLAKE2b-256 a29f8b1703db807a46359c7633d21f88b507bfa228ac626fd675b29802a4635e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtalk-1.0.6-py3-none-any.whl:

Publisher: release.yml on hissain/gtalk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page