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.
Metadata
Release files for chatgpt2dialog 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chatgpt2dialog-0.0.1.tar.gz | 17.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatgpt2dialog-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.3 kB
Release files / chatgpt2dialog-0.0.1.tar.gz
| Download URL | chatgpt2dialog-0.0.1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47bcea300c46b69cb7bd9deeae3177d3eee16f14354481e712ebdfa14c73fc5c
|
|
BLAKE2b-256 checksum How to use checksums |
539b537507e2a8b18b2233110a960faaba2b0880dda3db4fdc36429dc54f0c47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / chatgpt2dialog-0.0.1-py3-none-any.whl
| Download URL | chatgpt2dialog-0.0.1-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6b909073633c78f88f9a8194d52cdec6426e6ab94fcb761697ad35b2d7491fa
|
|
BLAKE2b-256 checksum How to use checksums |
1b481938ae80edff1f0513a673d141b68da73341c683237f43a84c847407f331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for chatgpt2dialog 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.