Skip to main content

chatgpt2dialog

Convert a ChatGPT conversation into an aidialog dialog you can read, search, and edit.

Install

pip install chatgpt2dialog

Use

convo2dlg turns a conversation payload, the JSON ChatGPT's web app loads, into a dialog:

from chatgpt2dialog import convo2dlg
convo2dlg(payload).save('chat.ipynb')

Fetching the payload needs a logged-in browser, because ChatGPT won't serve it to a plain HTTP client. The easiest way is url2convo with fastcdp, which fetches through a browser tab that already holds your login:

from fastcdp.skill import ExtCDP
from chatgpt2dialog import url2convo, convo2dlg
cdp  = await ExtCDP.listen()
page = await cdp.new_page()
convo2dlg(await url2convo('https://chatgpt.com/c/<id>', page)).save('chat.ipynb')

Point it at a conversation you can open: your own while logged in, or a Share link. For other ways to get the payload, see nbs/00_core.ipynb.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatgpt2dialog-0.0.1.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatgpt2dialog-0.0.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file chatgpt2dialog-0.0.1.tar.gz.

File metadata

  • Download URL: chatgpt2dialog-0.0.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chatgpt2dialog-0.0.1.tar.gz
Algorithm Hash digest
SHA256 47bcea300c46b69cb7bd9deeae3177d3eee16f14354481e712ebdfa14c73fc5c
MD5 02358e1737d7cf4fa58eea2ab8e1a613
BLAKE2b-256 539b537507e2a8b18b2233110a960faaba2b0880dda3db4fdc36429dc54f0c47

See more details on using hashes here.

File details

Details for the file chatgpt2dialog-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: chatgpt2dialog-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chatgpt2dialog-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b909073633c78f88f9a8194d52cdec6426e6ab94fcb761697ad35b2d7491fa
MD5 5e0c4292f93c8fde047d9625420a7a8b
BLAKE2b-256 1b481938ae80edff1f0513a673d141b68da73341c683237f43a84c847407f331

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