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
Metadata
Release files for Automate-GPT 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| automate_gpt-1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Automate_GPT-1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / automate_gpt-1.tar.gz
| Download URL | automate_gpt-1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a359af428deff278d8b4665f6cda01a636961f78cea68cf7bf504cc40c13006
|
|
BLAKE2b-256 checksum How to use checksums |
036a2a447997a303645fe39e99311b150d207fbcc7ba75d616cd57d58b847362
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / Automate_GPT-1-py3-none-any.whl
| Download URL | Automate_GPT-1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cafb4b1793a1e8a6313f545e8e32246a1e9900c55404224df5a9c9583048c514
|
|
BLAKE2b-256 checksum How to use checksums |
504605b4539e65bc80b1e7a15a912070174dcc7672319a7d533f302104d2d24e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|