fix: use curl_cffi Chrome TLS impersonation to bypass Cloudflare

chatgpt.com uses Cloudflare's TLS fingerprinting (JA3/JA4) which
blocks Python requests regardless of cookies. curl_cffi impersonates
Chrome's exact TLS handshake, making requests indistinguishable from
a real browser at the transport layer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
JesseMarkowitz
2026-02-28 05:20:52 -05:00
parent d236fdb21a
commit 5c6dcafa34
4 changed files with 48 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ description = "Export ChatGPT and Claude conversation history to Markdown for pe
requires-python = ">=3.11"
dependencies = [
"requests==2.31.0",
"curl_cffi==0.14.0",
"click==8.1.7",
"python-dotenv==1.0.1",
"rich==13.7.1",