Chat GPT Automation
Project description
ChatGPTAutomation
ChatGPTAutomation is a Python library that allows users to automate interactions with ChatGPT through a web driver. This library simplifies the process of sending prompts to ChatGPT and receiving responses in an automated manner.
Features
- Automate interactions with ChatGPT.
- Use an undetected Chrome driver to bypass detection.
- Simplified interface for sending prompts and retrieving responses.
Installation
To install ChatGPTAutomation, use pip:
pip install chatgptautomation
Requirements
- Python 3.7 or higher
- undetected-chromedriver
Usage
Here is a basic example of how to use the ChatGPTAutomation library:
Example
from chatgptautomation import ChatGPTAutomation
import undetected_chromedriver as uc
# Initialize the undetected Chrome driver
driver = uc.Chrome()
# Initialize ChatGPTAutomation with the Chrome driver
chatbot = ChatGPTAutomation(driver)
# Send a prompt to ChatGPT
response = chatbot.prompt("What is the capital of France?")
print(response) # Output: Paris
API Reference
ChatGPTAutomation
A class to automate interactions with ChatGPT.
__init__(self, driver: undetected_chromedriver.Chrome)
Initializes the ChatGPTAutomation instance.
- Parameters:
driver(undetected_chromedriver.Chrome): The Chrome web driver instance for interacting with ChatGPT.
prompt(self, prompt: str) -> str
Sends a prompt to ChatGPT and retrieves the response.
- Parameters:
prompt(str): The text prompt to send to ChatGPT.
- Returns:
- (str): The response from ChatGPT.
Notes
- Ensure you have the latest version of Chrome and the corresponding chromedriver installed.
undetected-chromedriveris used to prevent detection during automated browser interactions.
Acknowledgments
Created by Creater
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file automate_gpt-1.tar.gz.
File metadata
- Download URL: automate_gpt-1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a359af428deff278d8b4665f6cda01a636961f78cea68cf7bf504cc40c13006
|
|
| MD5 |
a4809f461e17db4cf0f01f2a0f1bc925
|
|
| BLAKE2b-256 |
036a2a447997a303645fe39e99311b150d207fbcc7ba75d616cd57d58b847362
|
File details
Details for the file Automate_GPT-1-py3-none-any.whl.
File metadata
- Download URL: Automate_GPT-1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cafb4b1793a1e8a6313f545e8e32246a1e9900c55404224df5a9c9583048c514
|
|
| MD5 |
3732b79a0563636e6e5def16e97156d7
|
|
| BLAKE2b-256 |
504605b4539e65bc80b1e7a15a912070174dcc7672319a7d533f302104d2d24e
|