Skip to main content

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


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-chromedriver is used to prevent detection during automated browser interactions.

Acknowledgments

Created by Creater

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automate_gpt-1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Automate_GPT-1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for automate_gpt-1.tar.gz
Algorithm Hash digest
SHA256 9a359af428deff278d8b4665f6cda01a636961f78cea68cf7bf504cc40c13006
MD5 a4809f461e17db4cf0f01f2a0f1bc925
BLAKE2b-256 036a2a447997a303645fe39e99311b150d207fbcc7ba75d616cd57d58b847362

See more details on using hashes here.

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

Hashes for Automate_GPT-1-py3-none-any.whl
Algorithm Hash digest
SHA256 cafb4b1793a1e8a6313f545e8e32246a1e9900c55404224df5a9c9583048c514
MD5 3732b79a0563636e6e5def16e97156d7
BLAKE2b-256 504605b4539e65bc80b1e7a15a912070174dcc7672319a7d533f302104d2d24e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page