# 批量导入主题到Discourse托管论坛

**URL:** <https://meta.discourse.org/t/bulk-importing-topics-to-discourse-hosted-forum/300543>\
**Category:** Migration\
**Tags:** stackoverflow\
**Created:** [2024 年3 月 22 日 16:03 UTC](https://meta.discourse.org/t/bulk-importing-topics-to-discourse-hosted-forum/300543 "2024-03-22T16:03:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Gavin\_Hudson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gavin_hudson/32/328449_2.png) [@Gavin\_Hudson](https://meta.discourse.org/u/Gavin_Hudson)\
发布日期： [2024 年3 月 22 日 16:03 UTC](https://meta.discourse.org/t/bulk-importing-topics-to-discourse-hosted-forum/300543/1 "2024-03-22T16:03:46Z")

</div>

我们有几百个帖子需要从 StackOverflow 迁移到一个由 Discourse 托管的论坛类别中。看起来有一个简单的方法可以[从 StackOverflow 导出帖子](https://meta.stackoverflow.com/questions/394543/export-questions-and-answers-from-a-stack-overflow-teams-site)到 JSON，然后我们可以根据需要将其转换为 CSV 或其他格式。

但是，我找不到如何将这些批量导入 Discourse 的教程。我找到了以下内容：

- [关于迁移类别](https://meta.discourse.org/t/about-the-migration-category/196969) 没有列出从 StackOverflow 迁移的指南。
- [设置环境以将其他论坛迁移到 Discourse](https://meta.discourse.org/t/set-up-an-environment-to-migrate-another-forum-to-discourse/88252)。如果 Discourse 托管论坛，我们可以使用此指南吗？似乎不行，因为我们需要访问服务器。
- [导入脚本 (Github)](https://github.com/discourse/discourse/tree/main/script/import_scripts) 列出了 stack\_overflow.rb。有如何使用它的指南吗？我没有 Ruby 经验。如果 Discourse 托管论坛，我们可以走这条路吗？
- [DiscourseTransfer 简单的 Java 导入工具](https://meta.discourse.org/t/discoursetransfer-simple-java-tool-for-import/138800) 似乎有很好的文档，但我不知道如何使用它。我没有 Java 经验。

---

_[View the full topic](https://meta.discourse.org/t/bulk-importing-topics-to-discourse-hosted-forum/300543)._
