templates/pcbeta.har
github-actions[bot] adb4a80a7c
Update HAR: 远景论坛 (#825)
Co-authored-by: loveqianool <loveqianool@users.noreply.github.com>
2025-01-03 22:49:37 +08:00

171 lines
4.5 KiB
JSON

[
{
"request": {
"method": "POST",
"url": "https://bbs.pcbeta.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1",
"headers": [],
"cookies": [],
"data": "username={{username}}&password={{password}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "",
"request": {
"method": "POST",
"url": "https://bbs.pcbeta.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1",
"headers": [],
"cookies": [],
"data": "username={{username}}&password={{password}}"
},
"rule": {
"success_asserts": [
{
"re": "欢迎",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "任务页",
"request": {
"method": "GET",
"url": "https://i.pcbeta.com/home.php?mod=task",
"headers": [],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "领取任务",
"request": {
"method": "GET",
"url": "https://i.pcbeta.com/home.php?mod=task&do=apply&id=149",
"headers": [],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "302",
"from": "status"
},
{
"re": "200",
"from": "content"
}
],
"failed_asserts": [
{
"re": "您需要先登录才能继续本操作",
"from": "content"
}
],
"extract_variables": []
}
},
{
"comment": "完成任务",
"request": {
"method": "GET",
"url": "https://i.pcbeta.com/home.php?mod=task&do=draw&id=149",
"headers": [],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "成功完成",
"from": "content"
},
{
"re": "不是进行中",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "积分页",
"request": {
"method": "GET",
"url": "https://i.pcbeta.com/home.php?mod=spacecp&ac=credit",
"headers": [],
"cookies": []
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "nickName",
"re": "访问我的空间\">(.+?)<",
"from": "content"
},
{
"name": "f",
"re": "<em> PB币[\\s\\S]+?</ul>",
"from": "content"
}
]
}
},
{
"comment": "Unicode转换",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "html_unescape=false&content={{nickName}} {{f | striptags}}"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"200\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]