Skip to content

ryuseisan/auto-chatgpt

Repository files navigation

Auto-ChatGPT

This Python project leverages Selenium to automate interactions with the browser-based ChatGPT. As a result, it enables efficient communication with the browser version of ChatGPT without using an API.

(Suggestions for a better project and package name are welcome, as the current ones do not seem quite appropriate.)

Table of Contents

Installation

To use this project, you need to install the dependencies by following these steps:

  1. Make sure you have Python 3.10+ installed on your system. If not, download it from here.

  2. Clone this repository:

    git clone https://github.com/ryuseisan/auto-chatgpt.git
    
    cd auto-chatgpt
    
  3. Install the required dependencies using either Poetry or Pip:

  • With Pip:

    pip install .
    
  • With Rye:

    rye sync --no-dev
    
  • With Poetry:

    poetry install --no-dev
    

Environment Setup

To securely store your email address and password, create a .env file in the project's root directory by copying the .env.example file:

cp .env.example .env

Edit the .env file and replace YOUR_EMAIL_ADDRESS and YOUR_PASSWORD with your actual email address and password. Also, set ACCOUNT_TYPE to either "OPENAI" or "GOOGLE" depending on the type of account you are using for login.

Usage

Set up a jupyter server or use vscode to run examples/autochat.ipynb.

The email address and password are loaded from the .env file. This will open a Chrome window and navigate to the ChatGPT website. Follow the prompts in the terminal to start the conversation with ChatGPT.

Contributing

Contributions are welcome! Please feel free to submit a pull request or create an issue to discuss any potential improvements or bug fixes.

Disclaimer

This software is experimental in nature, and upon use, the user agrees to the following terms and conditions

  1. This software is experimental and is provided without any warranty.
  2. The user is solely responsible for the use of this software.
  3. The developer is not responsible for any outcomes resulting from the use of this software.
  4. Users agree to abide by the terms of use of OpenAI's ChatGPT. For more details, please visit here.

If you do not agree to these terms, you should not use this software.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Automate interaction with the browser version of ChatGPT.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages