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 Automate-GPT

Requirements


Usage

Here is a basic example of how to use the ChatGPTAutomation library:

Example

from Automate-GPT 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 Sheth Jenil

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.0.1.tar.gz (2.4 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.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file automate_gpt-1.0.1.tar.gz.

File metadata

  • Download URL: automate_gpt-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 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.0.1.tar.gz
Algorithm Hash digest
SHA256 2a732b508e577fbf4fd664baf70abe6928504b985b635e032ba31089fa79138c
MD5 0a6708a982d29fa07319fb3de8b725ad
BLAKE2b-256 8a2351bc1eec9e071bd519f3d78d761256656dac9af3bc4ebfa95ec03aa8d353

See more details on using hashes here.

File details

Details for the file Automate_GPT-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: Automate_GPT-1.0.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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 153ad1be760386f5a4ab37397b260b5b29e9e8663b1d8bea0f4cd708544e9647
MD5 e40db761936485444cbcdd10beb597ec
BLAKE2b-256 33f62c2d79f8559cd7d46d18406827a6a7b728ff3471ccefd76f93d8cff5b7b7

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