feat(config): 更新配置中字段名从target_link改为detail_link 将JSON配置中的target_link字段统一改为detail_link,以更好地反映链接的实际用途。 BREAKING CHANGE: 配置文件中的字段名发生变化,需要更新相关引用 ```
30 lines
1.4 KiB
JSON
30 lines
1.4 KiB
JSON
{
|
||
"agent": {
|
||
"baseUrl": "http://192.168.3.65:18625",
|
||
"useBrowser": false,
|
||
"pollInterval": 3000,
|
||
"timeout": 3600000
|
||
},
|
||
"tasks": [
|
||
{
|
||
"id": "task-1710000000001",
|
||
"city": "南京市",
|
||
"prompt": "使用scrapling技能的fetch来爬取https://njggzy.nanjing.gov.cn/njweb/gchw/goods.html里房建市政、工程货物、交通水务、政府采购、产权交易、土地矿产、铁路航运和农村产权8个板块的招标公告列表的当天的的招标公告,获取项目名称 和项目金额(可能为合同预估价/最高投标限价等等),如果当天没有公告,默认获取最新的1条数据,不要试图写代码去正则匹配金额,因为金额的表述很多样,优先获取到详情md文件(或者html)后,使用`takeMoney`工具进行获取提取金额。\n输出结果为json,json结构如下\n```\n{\n \"results\": [\n\n {\n \"type\": \"比如房建市政\",\n\t\t\"project_name\": \"\",\n\t\t\"amount_yuan\": 0,\n\t\t\"date\": \"yyyy-MM-dd\",\n\t\t\"detail_link: \"http...\"\n\t }\n ]\n}\n```",
|
||
"enabled": true,
|
||
"mode": "glm-5",
|
||
"useBrowser": false
|
||
}
|
||
],
|
||
"scheduler": {
|
||
"enabled": false,
|
||
"cronTime": "0 9 * * *",
|
||
"description": "每天9点采集当日项目"
|
||
},
|
||
"email": {
|
||
"smtpHost": "smtp.qq.com",
|
||
"smtpPort": 587,
|
||
"smtpUser": "1076597680@qq.com",
|
||
"smtpPass": "nfrjdiraqddsjeeh",
|
||
"recipients": "5482498@qq.com"
|
||
}
|
||
} |