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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatgpt2dlg-0.0.1.tar.gz.
File metadata
- Download URL: chatgpt2dlg-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c64d7da7ede7b326f54a049008a52365a255f8d1dc775a85a4912a02292df8
|
|
| MD5 |
19dcbc22937ae96a6bfb319a975d956a
|
|
| BLAKE2b-256 |
bf8bef3a04825ffed4ebb11fb39512355f8015679e66f72e9cb39803e73f9f1c
|
File details
Details for the file chatgpt2dlg-0.0.1-py3-none-any.whl.
File metadata
- Download URL: chatgpt2dlg-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec0781bb4b00829e38be935617381ef8ea7ffe9dd2b677c342562c353781cbb6
|
|
| MD5 |
71b95ed7c72c4a55d41597ff81299f17
|
|
| BLAKE2b-256 |
00442a19a8acf09c2a76aef6c04b54f378645f667b962d025aeb58cdbec46836
|