集蜂云平台API
  1. 采集器
集蜂云平台API
  • 采集器
    • 运行采集器
      POST
    • 获取运行日志
      GET
    • 运行列表
      GET
  • 任务
    • 创建一个定时任务
      POST
    • 更新调度时间
      PUT
    • 任务调度启停
      PUT
    • 获取任务列表
      GET
    • 运行任务
      POST
    • 更新任务
      PUT
    • 获取任务详情
      GET
  • 数据
    • 获取数据列表
      GET
    • 获取采集的数据
      GET
    • 下载键值对文件
      GET
  1. 采集器

运行采集器

POST
/v1/scrapers/{scraperId}/run

请求参数

Path 参数

Header 参数

Body 参数application/json

示例
{
    "input": {
        "key": "value",
        "proxyConfig": {
            "proxyType": "RESIDENTIAL",
            "countryCode": "CN"
        }
    },
    "runOptions": {
        "buildTag": "latest",
        "timeoutSecs": 300,
        "memoryMbytes": 1024
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/scrapers//run' \
--header 'beeize-api-token: xxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "key": "value",
        "proxyConfig": {
            "proxyType": "RESIDENTIAL",
            "countryCode": "CN"
        }
    },
    "runOptions": {
        "buildTag": "latest",
        "timeoutSecs": 300,
        "memoryMbytes": 1024
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "",
    "data": {
        "id": "zx6ue1uo13g7uhzvj",
        "createAt": "2024-09-04 16:38:58",
        "updateAt": "2024-09-04 16:38:58",
        "deleteFlag": false,
        "scraperId": "mm5733d6hznnyyefr",
        "serviceId": "yv55vjm2zjvsaphlr",
        "status": "CREATED",
        "input": {
            "urls": ["https://www.baidu.com/"],
            "white_list":["/news"],
            "black_list":["/news"], 
            "level": 2, 
            "max_page": 100, 
            "proxyConfig": {
                "proxyType": "NO_PROXY",
                "countryCode": "",
                "ownProxyUrls": []
            }
        },
        "proxyConfig": {
            "countryCode": "cn",
            "proxyType": "RESIDENTIAL"
        },
        "timeoutSec": 600,
        "buildId": "v068wlhypy9473tyv",
        "buildVersion": "0.0.10",
        "origin": "WEB",
        "memory": 2048,
        "logId": "si6ue1uo13g7udjgr",
        "jobId": "si6ue1uo13g7udjgr",
        "kvStoreId": "e36ue1uo13g7ufjvv",
        "datasetId": "ie6ue1uo13g7uezu2",
        "requestQueueId": "tw6ue1uo13g7ug80h"
    }
}
修改于 2024-09-23 07:00:53
下一页
获取运行日志
Built with