Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

1.0 KB
Raw Blame

title: "Spider、リクエスト、結果の API リファレンス" description: "Spider のフック、リクエスト、セッション、クロールの統計、データの出力方法を確認します。"

Spider クラス {#spider-classes}

Spider フレームワークに含まれるクラスの引数、属性、メソッドを紹介します。

次のように直接インポートできます。

from scrapling.spiders import Spider, Request, CrawlResult, SessionManager, Response

::: scrapling.spiders.Spider

handler: python
:docstring:

::: scrapling.spiders.Request

handler: python
:docstring:

結果のクラス {#result-classes}

::: scrapling.spiders.result.CrawlResult

handler: python
:docstring:

::: scrapling.spiders.result.CrawlStats

handler: python
:docstring:

::: scrapling.spiders.result.ItemList

handler: python
:docstring:

セッション管理 {#session-management}

::: scrapling.spiders.session.SessionManager

handler: python
:docstring: