← all repositories
terry3041/pyChatGPT

A wrapper that fought Cloudflare and lost its reason to exist

A Python library that automated ChatGPT via browser automation before OpenAI released an official API, now abandoned by its maintainer.

1.3k stars Python Chat AssistantsLanguage Models
pyChatGPT
Velocity · 7d
+1.0
★ / day
Trend
steady
star history

What it does

pyChatGPT was an unofficial Python wrapper that let you script ChatGPT interactions by driving a real browser with undetected_chromedriver. You fed it a session token or login credentials, and it would navigate Cloudflare’s anti-bot maze, solve captchas, and return responses as structured data.

The interesting bit

The whole project was essentially an arms race against Cloudflare’s bot detection. The author gave up on requests entirely—HTTP was too simple for this job—and resorted to running a full Chromium instance just to look human enough. That it supported three login providers, multiple captcha solvers, and headless Linux via Xvfb tells you how baroque the unofficial path had become.

Key highlights

  • Browser automation via undetected_chromedriver to slip past Cloudflare
  • Supports OpenAI, Google, and Microsoft logins (marked “experimental”)
  • Captcha solving through 2Captcha, PyPasser, or manual entry
  • Headless server support with Chromium + Xvfb
  • Proxy support, though not with basic authentication

Caveats

  • Abandoned: the maintainer explicitly stopped development once OpenAI launched its official API
  • Requires a full Chrome/Chromium install—no lightweight HTTP client here
  • Google/Microsoft login support was experimental, so your mileage likely varied

Verdict

A decent historical artifact if you’re studying how people reverse-engineered access before official APIs existed. For actual ChatGPT automation today, use OpenAI’s official API instead—it’s what killed this project.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.