- 采集器
- 任务
- 数据
- 数据接口
- 账号池
- 代理配置
- git
- 数据接口
- 用户
运行采集器
POST
https://api.beeize.com/v1/scrapers/{scraperId}/run
请求参数
Path 参数
scraperId
string
必需
Header 参数
Body 参数application/json
input
object
必需
runOptions
object
必需
buildTag
string
必需
timeoutSecs
integer
必需
memoryMbytes
integer
必需
示例
{
"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 'https://api.beeize.com/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
integer
必需
msg
string
必需
data
object
必需
id
string
运行 Id
createAt
string
创建时间
updateAt
string
更新时间
scraperId
string
采集器 id
serviceId
string
用户 id
status
string
运行状态
input
object
运行的输入
proxyConfig
object
代理配置
timeoutSec
integer
超时时间
buildId
string
采集器构建 id
buildVersion
string
采集器构建版本
origin
string
来源
memory
integer
内存配置
logId
string
日志 id
jobId
string
job id
kvStoreId
string
键值对 id
datasetId
string
数据集 id
requestQueueId
string
采集器队列 id
deleteFlag
boolean
必需
示例
{
"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