AutoChatScript is an automation script implemented using the PyAutoGUI library, aimed at automating chat with ChatGPT(website). This project relies entirely on reading and using the mouse, keyboard, and screen without reverse-engineering any web requests or needing to install browser plugins.
- Automated Initialization: Automatically initializes the script, no manual screenshotting required.
- Cross-Platform Support: Future support for platforms beyond Windows.
- Full Operation Support: Supports a series of operations including creating new dialogues, submitting, regenerating, modifying, etc.
- Support for More Websites: This project is not only for ChatGPT but will support more chat websites in the future.
Before starting, ensure you have Python 3.6 or higher installed on your computer.
-
Clone the Repository
First, clone the project repository to your local computer:
git clone https://github.com/MaoXiaoYuZ/AutoChatScript.git cd AutoChatScript
-
Install Dependencies
Use pip to install the required Python libraries:
pip install -r requirements.txt
Before running the script, make sure you have opened the web version of ChatGPT and logged into your account.
-
Start Demo
python demo.py
Below is a demonstration of the demo running:
The demo will initialize certain features when needed, shown below is the process of automatically initializing the submit button after running demo.py.
Below is the initialization process for the resubmit button the first time the rewrite submit feature is used.
-
Provide OpenAI Format API
python openai_api.py --server-port 8000
- This project currently only supports the Windows operating system.
- Ensure that the ChatGPT web version is already open on your screen before running the script.
- As page layout updates may affect script operation, please check the project repository regularly for updates.
We welcome any form of contribution, whether feature requests, bug reports, or code submissions. Please submit your contributions through the GitHub repository's Issues and Pull Requests.