# グループ抽出

## グループ抽出とは？

グループ抽出は**複数のページを一度に収集できる機能**です。

{% columns %}
{% column width="75%" %}

<figure><img src="/files/25c8b14358b423da3749256a22cdba7636817acc" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="25%" %}

{% endcolumn %}
{% endcolumns %}

代表ページを1つ先に抽出した後、結果ウィンドウで **\[+グループ]** ボタンを押して関連ページのURLを追加すれば、残りのページはListlyが自動的に抽出します。

***

## グループ抽出開始前にURLを準備する

グループ抽出を実行するには、複数ページのURLを一度に入力する過程が必要なので、事前に抽出するページのURLを準備しておくのが良いでしょう。

状況に応じて以下のガイドを参考に、必要なURLを先に準備してください。

* [1,2,3…連続ページを抽出する場合](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/I8js41AfLS5QdXKB7e8A/~/edit/~/changes/9/getting-started/result-page-features/group-extraction-sequential-urls)
* [リストページに含まれる詳細ページを抽出する場合](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/I8js41AfLS5QdXKB7e8A/~/edit/~/changes/9/getting-started/result-page-features/group-extraction-detail-page-urls)

***

## 注意事項

{% columns %}
{% column %}

<figure><img src="/files/af1959052b401cb23f64ae9eae26be48383341f0" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

{% endcolumn %}
{% endcolumns %}

グループ抽出で\*\*最初に抽出するページは「テンプレート」\*\*の役割をします。\
グループ抽出は、この最初のページで選択した位置と同じ位置のデータを他のページでも取得する方式で動作します。

したがって、**最初に抽出したページとその後入力したURLのページ構造が異なると、抽出に失敗する可能性があります。**\
グループ抽出を行う前に、必ずページ構造が同じであることを確認してください。

***

## 使い方

{% stepper %}
{% step %}

#### グループ抽出ソースページを抽出する

グループ抽出の基準となるソースページを先に抽出します。必ずしも準備したURLの最初である必要はなく、**グループ抽出するページの中で代表的な構造を持つページ**を選択すれば結構です。抽出方式はWhole / Partsのどちらでも可能ですが、**データ位置をより正確に指定できる** [**部分抽出（Parts）**](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/I8js41AfLS5QdXKB7e8A/~/edit/~/changes/9/getting-started/extension-features/tabs-parts)を推奨します。

<figure><img src="/files/56d38db5076d7d189755763b2b2d3f57b9c8168d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 抽出タブを選択する

結果ウィンドウで**目的の情報が含まれるタブを選択**します。選択した領域内のすべての情報が含まれるタブを選択してください。

<figure><img src="/files/b232486d19f2f89a2e68dc8d2384a147dbce5b1c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### \[+グループ]ボタンをクリックする

**\[+グループ]** ボタンをクリックします。

<figure><img src="/files/2056416288d189e69a950a526b4dbfc96799bc58" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### グループ抽出に必要なURLアドレスを貼り付ける

グループ設定ウィンドウ下部に**準備したURLアドレス**を貼り付け、**\[完了]** ボタンをクリックしてください。

<figure><img src="/files/751fd6f33e98a0e05b67a84eb09c36947eb4012a" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
必ず**最初に抽出を行ったソースページのURLも一緒に入力**してください。
{% endhint %}
{% endstep %}

{% step %}

#### グループ抽出の進行状況を確認する

グループ抽出時にデータボードを更新して進行状況を確認できます。抽出が完了したら、結果欄をクリックしてグループ結果ウィンドウに移動します。

<figure><img src="/files/db1f4a436b55e1f7937e3ce051f74bacde1d4825" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### データ整列方式を選択する

ExcelまたはGoogleシートボタンをクリックし、データ整列方式を選択してからダウンロードボタンをクリックします。

{% hint style="info" %}
参考：[カード1個ずつ1行に入れる / タブ1個ずつ1行に入れる](https://app.gitbook.com/o/Uu6AM3fgpZza0EpsJM4N/s/I8js41AfLS5QdXKB7e8A/~/edit/~/changes/9/getting-started/result-page-features/data-arrangement)
{% endhint %}

<figure><img src="/files/06afb0e03d1b634689b80234b141039fb3ce0e71" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/d509d308ae6159b9ae1ceb3de9c71e5c0919c51b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### グループ抽出完了

ダウンロードしたファイルを開いて抽出したデータを確認してみてください。グループ抽出が完了しました。

<figure><img src="/files/d47a6bfe43164b31a74e5c489ef375e235a99342" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.listly.io/docs/ja/getting-started/result-page-features/group-extraction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
