# Discourseのカスタムタブベースのテーマを持つカテゴリへスクレイピングデータを投稿するパイプライン構築のベストな方法

**URL:** <https://meta.discourse.org/t/whats-the-best-way-to-build-a-pipeline-to-post-scraped-data-into-discourse-categories-with-custom-tab-based-themes/359025>\
**Category:** Product Support\
**Tags:** rest-api, customization\
**Created:** [2025 年 3 月 26 日午後 8:54 UTC](https://meta.discourse.org/t/whats-the-best-way-to-build-a-pipeline-to-post-scraped-data-into-discourse-categories-with-custom-tab-based-themes/359025 "2025-03-26T20:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Steve\_John](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_john/32/435022_2.png) [@Steve\_John](https://meta.discourse.org/u/Steve_John)\
**Post date:** [2025 年 3 月 26 日午後 8:54 UTC](https://meta.discourse.org/t/whats-the-best-way-to-build-a-pipeline-to-post-scraped-data-into-discourse-categories-with-custom-tab-based-themes/359025/1 "2025-03-26T20:54:22Z")

</div>

作成したカスタムテーマの異なるタブに、スクレイピングされたコンテンツを表示する自動パイプラインを構築したいと考えています。そのパイプラインは以下の機能を持つ必要があります。

1. ソース（RSSフィード、ウェブサイトなど）からコンテンツをスクレイピングする。
2. メタデータ（タイトル、ソース、タイプ（ニュース/カンファレンス）、URL、日付）でデータを構造化する。
3. Discourse APIを使用して以下を行う。
  - 正しいカテゴリの下にトピックを作成し、カスタムテーマの特定のタブ内のコンテンツを更新する。
  - 関連するタグを追加する（正しいタブの下に表示されるようにするため）。

スクレイピングされたデータを保存し、レンダリングするための最良の方法は何でしょうか？

1. ローカルデータベースまたは外部CMSでコンテンツを保存およびスケジュールする。
2. YAML/JSONファイル（静的ソース）。

---

_[View the full topic](https://meta.discourse.org/t/whats-the-best-way-to-build-a-pipeline-to-post-scraped-data-into-discourse-categories-with-custom-tab-based-themes/359025)._
