ChatGPT Conversation Exporter Plus

优雅导出 ChatGPT 对话记录,支持 JSON 和 Markdown 格式

目前为 2024-11-19 提交的版本。查看 最新版本

作者
BlakeHansen130
评分
0 0 0
版本
2.2
创建于
2024-11-17
更新于
2024-11-19
大小
14.5 KB
许可证
Custom License
适用于

描述 / Description

ChatGPT Conversation Exporter Plus 是一款功能强大且易于使用的会话导出工具,旨在帮助用户优雅地导出 ChatGPT 的对话记录。无论您是需要归档重要的交流内容,还是想与他人分享特定的对话,本脚本都能为您提供便捷的导出功能。

ChatGPT Conversation Exporter Plus is a powerful and easy-to-use conversation export tool, designed to help users gracefully export their ChatGPT conversation records. Whether you need to archive important communication or share specific conversations with others, this script provides a convenient export feature.

该工具支持导出为 JSONMarkdown 格式。JSON 格式适合后续的数据处理和分析,而 Markdown 格式非常适合以易读的方式展示和分享。通过该工具,用户可以轻松生成结构化且格式化的对话记录文件,既节省时间又保持记录的完整性和一致性。

The tool supports exporting to JSON and Markdown formats. JSON is ideal for subsequent data processing and analysis, while Markdown is perfect for presenting and sharing content in an easy-to-read format. With this tool, users can easily generate structured and formatted conversation record files, saving time while maintaining completeness and consistency.

除了基本的导出功能外,该脚本还采用了一些智能化处理方式,如对时间戳的格式化转换和对话内容的优化呈现,确保导出的文件内容简洁且清晰。

In addition to basic export functions, the script also uses intelligent processing methods, such as formatted conversion of timestamps and optimized presentation of conversation content, ensuring that the exported files are clean and clear.

功能特性 / Features

  • 支持多种格式导出:本脚本支持将会话记录导出为 JSONMarkdown 格式。JSON 格式的导出非常适合程序员或者需要进行数据挖掘的用户,而 Markdown 格式则能够以清晰、可读的方式进行呈现和交流,让您的对话记录更易于浏览和分享。

Multiple Format Support: This script supports exporting conversation records in JSON and Markdown formats. JSON exports are ideal for programmers or users who need data mining, while Markdown format is suitable for clear and readable presentation, making conversation records easy to browse and share.

  • 自动提取对话内容:脚本能够自动提取对话的关键内容,并对导出的数据进行清理和格式化。它会智能过滤掉对话中的一些多余标记和信息,例如系统生成的内容引用、内嵌的冗余标识符等,使得导出内容更加简洁易读。

Automatic Content Extraction: The script can automatically extract key content from conversations, cleaning and formatting the exported data. It intelligently filters out unnecessary tags and information from the conversation, such as system-generated content references and embedded redundant identifiers, resulting in a more concise and readable export.

  • 内置时间戳和模型信息:导出时,脚本会在对话内容中附上时间戳,以及对话时所使用的 AI 模型信息。这些附加信息非常有助于帮助用户在后续的参考过程中了解对话发生的具体时间和使用的模型版本,尤其是当您需要对不同模型的回答做比较时。

Embedded Timestamps and Model Information: When exporting, the script attaches timestamps and the AI model information used in the conversation. This additional information helps users understand the specific time the conversation occurred and which model was used, especially useful when comparing responses from different models.

  • 用户友好的下载按钮:在页面加载后,脚本会在页面右侧自动生成两个下载按钮——一个用于下载 JSON,另一个用于下载 Markdown。用户只需点击按钮即可完成导出操作,无需繁琐的设置,整个过程快速且直观。此外,下载按钮具有悬停效果,界面美观易用。

User-Friendly Download Buttons: After page loading, the script automatically generates two download buttons on the right side of the page—one for downloading JSON and another for Markdown. Users can simply click the buttons to complete the export operation without complicated settings. The entire process is fast and intuitive, and the buttons come with hover effects for an aesthetically pleasing and easy-to-use interface.

  • 对话层次调整:Markdown 导出时,脚本自动调整对话内容的标题级别,使不同层次的对话内容结构更加合理、易于阅读。无论是用户提问还是 AI 回答,内容都会以恰当的格式呈现,从而更好地适应 Markdown 的层次化阅读习惯。

Conversation Hierarchy Adjustment: When exporting to Markdown, the script automatically adjusts the heading levels of the conversation content, making the structure of different levels more reasonable and easier to read. Whether it is a user's question or an AI's response, the content is presented in an appropriate format to suit Markdown's hierarchical reading habits.

使用方法 / Usage Instructions

  1. 安装油猴脚本管理器:要使用本脚本,首先您需要在浏览器中安装油猴(Tampermonkey)或其他兼容的用户脚本管理器。Tampermonkey 是一款常用的用户脚本管理器,适用于大多数主流浏览器。

Install Tampermonkey Script Manager: To use this script, you first need to install Tampermonkey or another compatible script manager in your browser. Tampermonkey is a popular user script manager available for most major browsers.

  1. 安装脚本:安装完成油猴后,您可以将 ChatGPT Conversation Exporter Plus 脚本添加到您的脚本管理器中。安装完成后,脚本会在您访问 ChatGPT 对话页面时自动激活。

Install the Script: Once Tampermonkey is installed, add the ChatGPT Conversation Exporter Plus script to your script manager. Once added, the script will automatically activate when you visit the ChatGPT conversation page.

  1. 与 ChatGPT 进行对话:访问 ChatGPT 网站,进行正常的对话。在对话过程中,您无需额外操作,脚本会自动监听对话的生成内容,并准备好将其导出。

Interact with ChatGPT: Visit the ChatGPT website and start a conversation as usual. During the conversation, the script will automatically monitor the content and get it ready for export without requiring additional actions.

  1. 导出对话:当对话结束后,您会在页面右侧看到两个下载按钮:“下载 JSON” 和 “下载 MD”。点击 “下载 JSON” 按钮,将对话导出为 JSON 格式;点击 “下载 MD” 按钮,将其导出为 Markdown 格式。导出的文件会自动保存到您的本地计算机中。

Export the Conversation: After the conversation ends, you will see two download buttons on the right side of the page: "Download JSON" and "Download MD". Click "Download JSON" to export the conversation as a JSON file, or click "Download MD" to export it as a Markdown file. The exported file will be saved automatically to your local computer.

  1. 文件命名:导出时,脚本会自动为生成的文件命名,包含会话的标题和时间戳,确保每次保存的对话记录都是独一无二的。这对于需要保存多个对话记录的用户来说尤为方便,避免了重复命名带来的混淆。

File Naming: During export, the script automatically names the generated file, including the conversation title and timestamp, ensuring that each saved conversation record is unique. This is especially convenient for users who need to save multiple conversations, avoiding confusion due to duplicate names.

  1. Markdown 优化:如果您选择以 Markdown 格式导出,对话内容将以清晰的标题和分段来组织,方便您后续的查阅和使用。脚本还会自动将对话中的参考链接以脚注的形式呈现,使导出的文件在阅读时更具参考价值。

Markdown Optimization: If you choose to export in Markdown format, the conversation content will be organized into clear headings and sections for easy reference and usage. The script will also automatically present reference links in the conversation as footnotes, making the exported file more informative and easy to read.

注意事项 / Notes

在使用 ChatGPT Conversation Exporter Plus 导出对话记录时,请注意以下几点:

Please note the following when using ChatGPT Conversation Exporter Plus to export conversation records:

用户相关内容 / User-Related Content:

  1. 导出时无法包含用户上传的文件和图片。 Files and images uploaded by users cannot be included during export.
  2. 长文本中的代码不会自动导出。 Code within long texts will not be exported automatically.

GPT 生成内容 / GPT-Generated Content:

  1. GPT 生成的下载链接和图片无法导出。 Download links and images generated by GPT cannot be exported.
  2. Canvas 内容(如 GPT 提供的文档)不会自动导出。 Canvas content (e.g., documents provided by GPT) will not be exported automatically.
  3. 搜索功能中的引用链接不会保存。 Citation links from the search feature will not be saved.

请根据以上内容手动添加,以确保导出记录的完整性。

Please add these manually to ensure the completeness of the exported records.

作者 / Author

  • Gao + GPT-4 + Claude
  • 版本 / Version: 2.2
  • 协作者和致谢 / Collaborators and Acknowledgements: 感谢 ChatGPT 和 Claude 提供的技术支持,使该工具具备高效、智能的对话提取和导出功能。

Thanks to ChatGPT and Claude for providing technical support, enabling efficient and intelligent conversation extraction and export capabilities for this tool.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址