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.
Metadata
Release files for chatgpt2dlg 0.0.2
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 | Actions |
|---|---|---|---|---|
| chatgpt2dlg-0.0.2.tar.gz | 17.1 kB | Without provenance | Details for chatgpt2dlg-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chatgpt2dlg-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for chatgpt2dlg-0.0.2-py3-none-any.whl |
Total release size: 34.2 kB
Release files / chatgpt2dlg-0.0.2.tar.gz
| Download URL | chatgpt2dlg-0.0.2.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51cdfeef6d23cae51eafe54df68d24da73a09e1d2f84d2eade5f4ebc598097e1
|
|
BLAKE2b-256 checksum How to use checksums |
194684ddcbbae251fa0f1c0c0da151f83072a96d15326fb3bb26017f6d806cf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / chatgpt2dlg-0.0.2-py3-none-any.whl
| Download URL | chatgpt2dlg-0.0.2-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e51f7bfdffe9c71b8fffd99730bad91670485350d6f9711547cb088ffd71826e
|
|
BLAKE2b-256 checksum How to use checksums |
f01f212f2ba8ca90906f32e5d064af609f88bd6b7bf89f0b5b41d67e321267eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for chatgpt2dlg 0.0.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.