Skip to content

An unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.

License

Notifications You must be signed in to change notification settings

rehanzo/easyChatGPT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyChatGPT

License: GPL v3Maintenancemade-with-python

An unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.

Features

  • Bypass Cloudflare's anti-bot protection using undetected_chromedriver
  • Complementary and fast Audio Recaptcha solver using the pypasser library.

Installation

You must install ffmpeg and ffprobe on your machine before running.

Install On Windows
Install On Linux
Install On MacOS

Install the offical easyChatGPT package

pip install easychatgpt

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

OPENAI_EMAIL

OPENAI_PASSWORD

Copy the .env file and put in your openai email and password

cp .env.example .env

Usage / Demo

Simple Usage

from easychatgpt import ChatClient
import os
from dotenv import load_dotenv


load_dotenv()
OPENAI_EMAIL = os.getenv("OPENAI_EMAIL")
OPENAI_PASSWORD = os.getenv("OPENAI_PASSWORD")

chat = ChatClient(OPENAI_EMAIL,OPENAI_PASSWORD)

answer = chat.interact("Introduce your self")

print(answer)

More examples to look at

Acknowledgement

ChatGPT_Selenium
PyPasser

About

An unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%