Chatgpt Parse Export
By Mark Fletcher
- 2 minutes read - 265 wordsAs a developer, I’ve found ChatGPT to be an invaluable resource for getting quick answers to programming questions, brainstorming solutions, and even tackling the occasional debugging conundrum. It’s even helping write this blog post. It’s like having a virtual team of experienced developers at your disposal 24/7. But as much as I have come to rely upon ChatGPT, I needed a better way to organize my chats with it.
Enter Obsidian, a powerful note-taking and knowledge management app that is my go-to tool for organizing thoughts, code snippets, and more. I realized that if I could import my ChatGPT exports into Obsidian, I’d have a highly efficient way to search, reference, and build upon my ChatGPT conversations.
I wrote the following small Go program to parse a ChatGPT export file and generate a series of Markdown files from it, one per conversation, suitable for Obsidian or any other Markdown based editor. The program takes two arguments, the name of the conversations.json file from the export, and the directory where the generated Markdown files should be place.
To generate a ChatGPT export, click on Settings
from the hamburger menu at the bottom left corner of the page.
That will bring up a dialog with a Export Data
link. You will be emailed a link to download the export when it’s ready.