# 入门指南

&#x20;       了解如何使用 Web Scraper API 构建器或者以编程方式运行抓取工具。

&#x20;       请注意，使用我们的Web Scraper API时，您需要拥有一个Thordata账户。如果您还没有账户，请先完成[注册](https://dashboard.thordata.com/zh/register)。如果您已经了解如何使用，可以直接前往仪表板[登录](https://dashboard.thordata.com/zh/login)并使用。

<div align="left"><figure><img src="/files/oOm6YWl5T06rhYn5yQBA" alt="" width="563"><figcaption></figcaption></figure></div>

1. **选择您的第一个抓取工具**

&#x20;       登录 Thordata 仪表盘后，导航至 [Web Scraper 商店](https://dashboard.thordata.com/zh/web-scraper)。\
&#x20;       要获取您的第一个抓取文件，您必须从 Web Scraper商店选择一个现有的抓取器。\
&#x20;       在本文中，我们将以“Amazon - 通过URL收集产品信息”作为示例。选择好抓取器后，您可以通过多种方式启动它。

<div align="left"><figure><img src="/files/iid57JZ7hlMebu2BElAk" alt="" width="563"><figcaption></figcaption></figure></div>

2. **了解您的第一个抓取工具**

&#x20;       选择您的第一个抓取器后，您将被引导到一个新页面。在这个页面上，您可以查看有关该抓取器的多个详细信息，包括介绍、示例JSON/CSV输出、示例输出中字段的解释，以及运行该抓取器所需的输入参数说明。\
&#x20;       此外，如果抓取器未包含您需要的字段，您可以通过缺失数据点处的反馈入口或页面底部的反馈区提供意见。我们将在24小时内与您联系，帮助解决问题。

<div align="left"><figure><img src="/files/pI1rkMrUeSu2fUJN0OkW" alt="" width="563"><figcaption></figcaption></figure></div>

3. **使用您的第一个抓取工具**   \
   ①通过 API 构建器抓取：   \
   将您想要抓取的亚马逊产品详情链接替换到API构建器中的“URLs”位置，然后点击“开始抓取”。

<div align="left"><figure><img src="/files/vTBstpKfOMuy6MBD8zze" alt="" width="563"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/V9KDiaM9Dx5itkKzBhYF" alt="" width="563"><figcaption></figcaption></figure></div>

&#x20;      ②通过编程方式抓取：\
&#x20;     通过使用右侧的代码发送POST请求来调用抓取工具。例如：

{% tabs %}
{% tab title="cURL-Linux" %}

```sh
curl -X POST "https://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer Token-ID" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_name=amazon.com" \
  -d "spider_id=amazon_product_by-url" \
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\",\"zip_code\": \"94107\"}]" \
  -d "spider_errors=true" \
  -d "file_name={{TasksID}}"
```

{% endtab %}

{% tab title="cURL-Windows" %}

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=amazon.com" ^
  -d "spider_id=amazon_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\",\"zip_code\": \"94107\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

{% endtab %}
{% endtabs %}

<div align="left"><figure><img src="/files/f9u88HshLB4U1YFu2eYj" alt="" width="563"><figcaption></figcaption></figure></div>

4. **获取结果与历史抓取记录**   \
   网页抓取器可能需要一些时间来完成操作，请耐心等待。   \
   您很快就会看到您创建的第一个任务成功完成。您可以通过“[任务](https://dashboard.thordata.com/zh/web-scraper/tasks)”列表中的下载按钮以多种格式导出数据。当然，如果在抓取完成后直接关闭了抓取页面，但仍然希望查看历史抓取内容，您可以通过抓取器的“任务”列表查看所有历史抓取记录。

<div align="left"><figure><img src="/files/cos3riemsheL51K8ZKcG" alt="" width="563"><figcaption></figcaption></figure></div>

如果您需要进一步的帮助，请通过电子邮件联系 <support@thordata.com。>


---

# 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://doc.thordata.com/doc/zh/web-scraper-api/ru-men-zhi-nan.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.
