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.)
To use this project, you need to install the dependencies by following these steps:
-
Make sure you have Python 3.10+ installed on your system. If not, download it from here.
-
Clone this repository:
git clone https://github.com/ryuseisan/auto-chatgpt.git
cd auto-chatgpt
-
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
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.
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.
Contributions are welcome! Please feel free to submit a pull request or create an issue to discuss any potential improvements or bug fixes.
This software is experimental in nature, and upon use, the user agrees to the following terms and conditions
- This software is experimental and is provided without any warranty.
- The user is solely responsible for the use of this software.
- The developer is not responsible for any outcomes resulting from the use of this software.
- 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.
This project is licensed under the MIT License. See the LICENSE file for more details.