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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file openai-chat-parser-0.1.0.tar.gz.

File metadata

  • Download URL: openai-chat-parser-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.2

File hashes

Hashes for openai-chat-parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fd519632a6bc409f3a80d4550fec30788ef9ddfa2906748ae362df2084dbfa4
MD5 cfd1dfc56ef9ecd700c32d4e958d2bbc
BLAKE2b-256 f615d9ca76073807647ef353ed81fcd00719216bf443aeca07ab78fa16a3d108

See more details on using hashes here.

File details

Details for the file openai_chat_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_chat_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95152f0eb6448755e75193d0baa413ec403688dedbcc60d8967859b7f48c8013
MD5 9a8a32ea4a87f277c180b1b3b4dfe9ad
BLAKE2b-256 0a422dce025e7f7b5030f5ed16a6264d54a3a464acdfa62e769813ffab83935b

See more details on using hashes here.

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