Skip to main content

Download, extract, and parse OpenAI chat conversation archives

Project description

OpenAI Chat Parser is a command-line tool that downloads, extracts, and parses OpenAI chat conversation archives. The tool organizes conversations into separate folders with appropriate file formats based on the conversation content.

Installation

You can install the OpenAI Chat Parser package from PyPI using pip:

pip install openai-chat-parser

Usage

After installing the package, you can use the openai-chat-parser command-line tool to process chat archives.

To run the OpenAI Chat Parser, execute the following command:

openai-chat-parser

The script will prompt you to enter the ZIP URL of the chat archive:

Enter the zip URL:

Enter the URL and press Enter. The tool will download, extract, and parse the chat conversations, organizing them into separate folders.

Configuration

Before using the OpenAI Chat Parser, you can configure the package by modifying the config.json file. This file contains settings like the destination path, archive folder, export folder, and download retries.

Here’s an example of the config.json file:

{
   "chats_home": "~/Chats",
   "downloads_folder": "downloads",
   "archive_folder": "archive",
   "conversations_folder": "conversations",
   "zip_download_retries": 3,
   "retry_wait_time_seconds": 5
}

You can customize the settings in the config.json file to suit your needs.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openai-chat-parser-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

openai_chat_parser-0.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page