HeadlinesBriefing favicon HeadlinesBriefing.com

Export ChatGPT Chats Locally

Hacker News •
×

A new tool, scrapemychats, allows users to export their ChatGPT conversations, including attached files, from business and Team accounts into a local, searchable HTML archive. This addresses the lack of an official "Export data" button for these account types, ensuring data retention when subscriptions end or workspaces close.

Developed by Conradqh, the tool operates by driving a real Chrome window on the user's computer, interacting with their logged-in ChatGPT session without accessing passwords. The exported data is stored locally, never leaving the user's machine. The resulting archive features a navigable interface with categories, chat lists, and full conversation views, supporting tables, files, and images.

Setup involves installing Python 3.10+ and Google Chrome. Users can then install dependencies via `pip install -r requirements.txt` and run the export script. A `--limit` option allows testing with a small number of chats before a full export. The process is designed to be slow and resilient, automatically resuming if interrupted. OpenAI's file deletion policies mean some older files may be unrecoverable, but the text referencing them is preserved.