Skip to main content

chatgpt2dlg

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

Install

pip install chatgpt2dlg

Use

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

from chatgpt2dlg 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 chatgpt2dlg 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

chatgpt2dlg-0.0.2.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

chatgpt2dlg-0.0.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file chatgpt2dlg-0.0.2.tar.gz.

File metadata

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

File hashes

Hashes for chatgpt2dlg-0.0.2.tar.gz
Algorithm Hash digest
SHA256 51cdfeef6d23cae51eafe54df68d24da73a09e1d2f84d2eade5f4ebc598097e1
MD5 db8bdab451f1a49d0d814cee292ed548
BLAKE2b-256 194684ddcbbae251fa0f1c0c0da151f83072a96d15326fb3bb26017f6d806cf4

See more details on using hashes here.

File details

Details for the file chatgpt2dlg-0.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for chatgpt2dlg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e51f7bfdffe9c71b8fffd99730bad91670485350d6f9711547cb088ffd71826e
MD5 146a2070ff134b4bcf70b1bb24c4382b
BLAKE2b-256 f01f212f2ba8ca90906f32e5d064af609f88bd6b7bf89f0b5b41d67e321267eb

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