GithubHelp home page GithubHelp logo

yam-reviser / chatgpt_conversations_to_markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daugaard47/chatgpt_conversations_to_markdown

0.0 0.0 0.0 4 KB

ChatGPT Conversations to Markdown is a Python script that converts your exported ChatGPT conversations into readable and well-formatted Markdown files.

Python 100.00%

chatgpt_conversations_to_markdown's Introduction

ChatGPT Conversations to Markdown

ChatGPT Conversations to Markdown is a Python script that converts your exported ChatGPT conversations into readable and well-formatted Markdown files by using the conversations.json file. The script provides a convenient way to archive and share your interactions with ChatGPT.

Features

  • Convert ChatGPT conversations stored in JSON format to Markdown
  • Customize user and assistant names using a configuration file
  • Include or exclude date in the output Markdown files
  • Customize the format of file names, dates, and message separators
  • Process individual JSON files or all JSON files in a directory

Installation

  1. Clone the repository or download the ZIP file and extract it to a folder on your computer.
git clone https://github.com/daugaard47/ChatGPT_Conversations_To_Markdown.git
  1. Change into the project directory:
cd ChatGPT_Conversations_To_Markdown
  1. Create a virtual environment (optional but recommended):
python -m venv venv
  1. Activate the virtual environment:
# For Windows:
venv\Scripts\activate

# For Linux or macOS:
source venv/bin/activate
  1. Install the required Python dependencies:
pip install tqdm

Usage

  1. Update the config.json file with your desired settings, such as user and assistant names, input and output paths, and other formatting options.
  2. Create your JSON input directory and add the JSON file e.g. conversations.json you received from the export of the ChatGPT conversations to this location. Add this path to your config file.
  3. Create the Output Directory and add this path to your config file. Your markdown files will appear here after the script runs.
  4. Run the script:
python chatgpt_json_to_markdown.py
  1. The script will process your conversations and save them as Markdown files in the specified output directory.
  2. When the script is done, you will see a message like this:
All Done Buddy! You can access your files here: <output_directory>

Now you can easily read, share, or archive your ChatGPT conversations in a more human-readable format. Enjoy!

chatgpt_conversations_to_markdown's People

Contributors

daugaard47 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.