A Python framework for automating ChatGPT interactions with human-like behavior simulation. No API required!
- Browser Automation: Automated ChatGPT interactions through web interface
- Human-Like Typing: Configurable typing speeds and patterns
- Message Handling: Send messages and parse responses
- Customizable Behavior: Adjust typing speed, pauses, and error rates
- Response Parsing: Extract and format conversation content
git clone https://github.com/vibheksoni/AutoChatgpt.git
cd AutoChatgpt
# Install dependencies
pip install -r requirements.txt
from gpt import ChatGPTClient
# Initialize the client
client = ChatGPTClient()
# Send a message with human-like typing
client.send_message("What is Python?")
# Get the conversation history
messages = client.get_messages()
for msg in messages:
print(f"{msg.role}: {msg.content}")
client.send_message(
"Hello, how are you?",
typing_speed=(0.05, 0.15), # Typing speed variation
word_pause=(0.2, 0.5), # Natural pauses between words
mistake_chance=0.05, # Occasional typos
human_correct=True # Natural correction behavior
)
import logging
# Debug mode with custom log file
client = ChatGPTClient(
log_level=logging.DEBUG,
log_file="chatgpt_debug.log"
)
# Disable logging
client = ChatGPTClient(log_level=None)
# From examples/conversation_loop.py
client = ChatGPTClient()
while True:
user_input = input("You: ")
if user_input.lower() == 'quit':
break
client.send_message(user_input)
The examples directory contains automation scenarios:
basic_chat.py
: Simple automated interactionscustom_typing.py
: Advanced human-like behaviorconversation_loop.py
: Continuous chat automationcode_generation.py
: Automated code generation
The framework includes comprehensive error handling for:
- Network issues
- Authentication challenges
- Message parsing errors
- Session management
- Response timeouts
Contributions are what make the open source community amazing! Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
If you find this project useful, please consider giving it a star! It helps others discover this tool and motivates continued development.
Distributed under the MIT License. See LICENSE
for more information.
Vibhek Soni - Backend Developer & Security Engineer
- GitHub: @vibheksoni
- Website: vibhek.com
- Security Blog: insecuremind.xyz
- Social Links: vibhek.com/socials
If you need custom development, security consulting, or have a project in mind, feel free to reach out through my contact page: vibhek.com/contact
If you like this project, please consider:
- Starring the repository
- Following me on GitHub
- Forking the project
- Thanks to all contributors who help improve this project
- Special thanks to the open-source community
- Inspired by the need for human-like ChatGPT automation
Made with ❤️ by Vibhek Soni