Hey there! 👋 Welcome to the ChatGPT Conversation Exporter! This nifty Python script helps you filter and export your ChatGPT conversations to markdown files, making it a breeze to organize and search through your chats. 🔍📝
This script takes a JSON file containing all your ChatGPT conversations and lets you:
- Filter conversations based on a search term (can be anything, like an emoji or a keyword)
- Export the filtered conversations to individual markdown files
- Add custom tags to the exported files for easy categorization
- Save the markdown files to a directory of your choice
Pretty cool, right? 😎
Using this script is super easy! Just follow these steps:
-
Make sure you have Python installed on your machine. If you don't, head over to the Python website and grab the latest version.
-
Download the
chatgpt_exporter.py
script from this repo and save it somewhere on your computer. -
Open your terminal or command prompt and navigate to the directory where you saved the script.
-
Run the script by typing
python chatgpt_exporter.py
and hit Enter. -
The script will prompt you for some info:
- The path to your
conversations.json
file (this is the file containing all your ChatGPT conversations) - The output directory where you want to save the exported markdown files (default is
obsidian_import
) - Any tags you want to add to the exported files, separated by commas (default is
chatgpt
) - The search term you want to use to filter your conversations
- The path to your
-
Sit back and let the script work its magic! ✨ It'll filter your conversations and export the matching ones to markdown files in the output directory you specified.
-
Once the script is done, you'll find your exported conversations in the output directory, ready to be imported into your favorite note-taking app or shared with the world! 🌍
If something goes wrong, don't panic! The script logs any errors to a file called conversion.log
in the same directory. Check this file for clues on what might have gone wrong.
If you're still stuck, feel free to open an issue on this repo, and we'll do our best to help you out! 💪
That's it! You're now ready to filter and export your ChatGPT conversations like a pro. Happy organizing and searching! 🗂️🔎