Skip to main content

Selenium Driver to Control ChatGPT from Command Lines

Project description

GPTDriver

Take control of ChatGPT effortlessly with GPTDriver: Simplified interaction, no API key required.

Test Coverage Package version

Downloads Contributors Issues


Documentation: Coming Soon!

Source Code: https://github.com/nilbasora/GPTDriver


About The Project

GPTDriver is a Python library developed to simplify the process of interacting with OpenAI's ChatGPT model. With GPTDriver, you can control ChatGPT through command lines, allowing for easy integration and seamless communication with the language model.

ChatGPT, powered by OpenAI, is a state-of-the-art language model capable of generating human-like text based on prompts provided to it. However, interacting with the ChatGPT user interface manually can be cumbersome and time-consuming. GPTDriver aims to streamline this process by leveraging Selenium, a web automation framework, to emulate human navigation through the ChatGPT website.

Rather than relying on the OpenAI API key for direct access to ChatGPT, GPTDriver automates the browser interactions required to communicate with the model. This approach provides a more convenient way to interact with ChatGPT and eliminates the need for handling HTTP requests or managing API keys.

By using Selenium, GPTDriver mimics human behavior while navigating the ChatGPT website. It can log in to your OpenAI account, create new chat sessions, send prompts, and retrieve responses, all through command lines. This approach provides a natural and intuitive way to control ChatGPT and integrate it into your Python projects.

Key features of GPTDriver include:

  • Simple command line interface for controlling ChatGPT.
  • Emulation of human navigation through the ChatGPT website using Selenium.
  • Automated login process for OpenAI account authentication.
  • Ability to create new chats and maintain multiple chat sessions.
  • Seamless sending of prompts to ChatGPT and retrieving responses.
  • Support for customization, including chat history and system messages.

GPTDriver aims to empower developers and researchers by providing a user-friendly and efficient way to leverage the capabilities of ChatGPT. With GPTDriver, you can harness the power of ChatGPT's natural language processing by emulating human interactions with the ChatGPT user interface.

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Requirements

Python 3.6+

ChatGPT account (free or plus)

Chromedriver (+Chrome)

Installation

$ pip install GPTDriver

---> 100%

Usage

Coming Soon!

Roadmap

See the open issues for a list of proposed features (and known issues).

  • Create the basic structure to post/get prompts
  • Models selector
    • GPT 3.5
    • GPT 4
    • GPT 4 with browser
  • Authentification methods
    • Email
    • Google
    • Microsoft
    • Apple
  • Follow old conversations
  • Automatic "plus" user detection
  • Add Tests

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
  • Please make sure you check your spelling and grammar.
  • Create individual PR for each suggestion.
  • Please also read through the Code Of Conduct before posting your first idea as well.

Creating A Pull Request

  1. Fork the Project
  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

Distributed under the MIT License. See LICENSE for more information.

Authors

Contributors

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

GPTDriver-0.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

GPTDriver-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file GPTDriver-0.1.1.tar.gz.

File metadata

  • Download URL: GPTDriver-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for GPTDriver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b1e9037362a4c4ef7ec5a064bb5b713d18765c7bd9157c686edf10f698938905
MD5 dd46c17d9c15efeb01a4e19b47409002
BLAKE2b-256 b4023200881c45776e500c2c3628255e7345deb4676e83970ef8ac38b5e5ff9e

See more details on using hashes here.

File details

Details for the file GPTDriver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: GPTDriver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for GPTDriver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc286b961a3b405bdddc78ba9078bf3b1094b57c32dedf0acca7c1ae22d5af47
MD5 d589fd5b3d62e40cc7b4b0dbab2c9085
BLAKE2b-256 564852f292f410f8b412e2a7c2e51bf03e7eb5a3fdc75ac864b59f982e913925

See more details on using hashes here.

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