> For the complete documentation index, see [llms.txt](https://help.listly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.listly.io/docs/ja/getting-started/extension-features/parts.md).

# 部分を抽出 (Extract Part)

## 部分を抽出とは？

必要な範囲だけを選んで**部分的にデータを抽出できる**機能です。抽出データの構造や精度を高めたいときにお試しください。

{% hint style="success" %}
**超簡単ガイド**

➡️ 抽出したいページでListlyアイコンをクリック ➡️ Extract Partを選択 ➡️ データの抽出範囲を選択 ➡️ パネルで抽出オプションを選択（任意） ➡️ RUNをクリック ➡️ 結果画面で抽出したいデータのタブを選択 ➡️ データをダウンロード
{% endhint %}

***

## 使い方

{% stepper %}
{% step %}

#### 抽出したいサイトでListlyアイコンをクリックする

[Listlyをインストール済み](https://help.listly.io/docs/ja/~/revisions/8HYcVPKMxph0gzWRX4MW/getting-started/quick-start-guide/how-to-install-listly)のブラウザで、データを抽出したいWebページを開き、Listlyアイコンをクリックします。
{% endstep %}

{% step %}

#### 「Extract Part」を選択する

Listly拡張機能&#x3067;**\[Extract Part]**&#x30DC;タンを選択します。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2Fj8Av3XkehJ2Vd83KDeKX%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-1.png?alt=media&amp;token=2fc27609-c79d-4e34-8e1a-1008852a24d3" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### 抽出したい範囲を選択する

抽出したい範囲をクリックして指定します。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2FF1s2XblXVKEoE8xZ3849%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-2.png?alt=media&amp;token=5b9131bc-80ca-4dab-a4d7-c47b7e436005" alt=""><figcaption></figcaption></figure>

同じパターンを持つ抽出範囲をクリックすると、ポップアップが自動的に表示され、類似する範囲をまとめて選択できます。

* **\[Group all]**：クリックすると、一致する範囲を個別にクリックすることなくまとめて選択できます。
* **\[Keep separate]**：抽出したい範囲が、パターンを共有しない個別のセクションである場合にクリックします。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2F8vKoWkxrBTzDF2Kg1Kqb%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-3.png?alt=media&amp;token=5191728f-0dec-4954-8af7-b87075ea9377" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[Extract Partの範囲選択](https://help.listly.io/docs/ja/~/revisions/o5GwFKESu5FkbwPbSWtG/getting-started/extension-features/parts-selection)
{% endhint %}
{% endstep %}

{% step %}

#### 範囲ごとに抽出オプションを選択する（任意）

必要に応じて、個別の選択ボックス内で抽出オプションを設定します。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2FOGCv3LwdirBGkNI9wRsg%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-4.png?alt=media&amp;token=6d05c8d4-435a-46b6-a0fb-0bb7a5928d96" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[Extract Partの抽出オプションについて](https://help.listly.io/docs/ja/~/revisions/o5GwFKESu5FkbwPbSWtG/getting-started/extension-features/parts-options)
{% endhint %}
{% endstep %}

{% step %}

### 「RUN」をクリックする

抽出範囲の選択が終わったら、**\[RUN]**&#x30DC;タンをクリックします。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2FtVsonlVAiSMdHfNT1D3a%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-5.png?alt=media&amp;token=e568bdc4-e0b0-4a7b-aee1-3b3f6a119a81" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 結果画面で抽出するタブを選択する

結果画面で抽出したデータを確認したら、**\[Excel]**&#x307E;た&#x306F;**\[Google Sheets]**&#x30DC;タンをクリックしてエクスポートします。

<figure><img src="https://161576231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI8js41AfLS5QdXKB7e8A%2Fuploads%2FTrQCqUxBKQfWh5Cud7Y2%2F5.%E1%84%87%E1%85%AE%E1%84%87%E1%85%AE%E1%86%AB%E1%84%8E%E1%85%AE%E1%84%8E%E1%85%AE%E1%86%AF-6.png?alt=media&amp;token=d608aeb1-520a-4792-902f-13569c9bd6df" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
参考：[データダウンロードオプションについて](https://help.listly.io/docs/ja/~/revisions/o5GwFKESu5FkbwPbSWtG/getting-started/result-page-features/data-download-options)
{% endhint %}
{% endstep %}

{% step %}

### データをダウンロードする

ダウンロードしたファイルを確認します。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/ileXygdAZjzSoRAGk4Qy/parts%206.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## 部分抽出 FAQ

<details>

<summary>PART vs PARTS - 何が変わったのですか？</summary>

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/lvjjBVwkWcZ7KaYJoNDs/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2002.jpg" alt=""><figcaption></figcaption></figure>

単一の選択領域の真上に直接表示されていた機能ボタン（Before）が、以下のようにサイドパネル（After）に移動しました。以前のUIから変更された各機能ボタンの新しい位置については、画像を参照してください。

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/Mi7zXuw9sFRMuJ2M8dTF/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2003.jpg" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
\*\*以前の部分選択と同じプロセスでデータを抽出したい場合は、\*\*変更されたボタンの位置を参照し、単一の領域のみを選択してから、Run Listlyボタンをクリックして抽出を進めてください。
{% endhint %}

</details>

<details>

<summary>抽出するアイテムの数がページごとに異なります。グループ抽出は可能ですか？</summary>

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/jGZBZvchFWmIHHcpl0GY/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2007.jpg" alt=""><figcaption></figcaption></figure>

**はい、可能です。** 例えば、上の画像のように、ページ1の最初のアイテム領域がページ2では広告などの別の要素に置き換えられているとします。（<mark style="color:$success;">抽出したい情報がある領域は緑色のボックスでマークされています</mark>）

**ListlyのPartsは、同じ構造のデータ位置を自動的に検出します。**

ページ1で「**繰り返し要素を自動選択（繰り返し要素の自動選択）**」メソッドを使用して目的の領域を指定してデータを抽出し、そのページを基にグループ抽出を実行すると、他のウェブページで選択された領域の数が異なっていても、データ抽出は失敗なく成功します。

</details>

<details>

<summary>「個別に目的の領域を選択」メソッドを使用して特定のページを抽出し、グループ抽出を実行したいのですが、一部のページには「個別に選択した」要素がありません。この場合はどうなりますか？</summary>

<figure><img src="https://content.gitbook.com/content/I8js41AfLS5QdXKB7e8A/blobs/G2DNKnDg6odqjiqcrprc/%ED%8C%8C%EC%B8%A0%20parts%20%EA%B0%80%EC%9D%B4%EB%93%9C%2008.jpg" alt=""><figcaption></figcaption></figure>

**上の画像のように、不足している情報は空白セルとして抽出されます。**

ページAでPartsを使用して画像、タイトル、説明領域を個別に選択し、データを抽出してから、同じ構造を持つページでグループ抽出を実行したとします。

ページCにページAで選択した説明領域が空の場合、そのセルのデータは上の画像のように空白として抽出されます。

{% hint style="danger" %} <mark style="color:red;">**ただし、以前のグループ抽出と同様に、ソースページと完全に異なる構造のウェブページを抽出しようとしたり、ページAと一致する領域がない場合は、収集失敗として処理されます。**</mark>
{% endhint %}

</details>

<details>

<summary>繰り返し領域を選択する際、不要な領域も選択されます。どうすれば解決できますか？</summary>

より正確なデータ領域選択のために、クリックで不要な領域を削除できる機能を追加する予定です。現在は、その領域の**CSSセレクター値を直接編集**することで解決できます。

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.listly.io/docs/ja/getting-started/extension-features/parts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
