templates/ysqqd.har
github-actions[bot] e427f9ddc0
Add HAR: 源社区签到 (#847)
Co-authored-by: AIcxx <AIcxx@users.noreply.github.com>
2025-01-22 22:30:33 +08:00

235 lines
7.4 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"comment": "登陆,积分页",
"request": {
"method": "GET",
"url": "https://ysqbbs.com/k_misign-sign.html",
"headers": [
{
"name": "Host",
"value": "ysqbbs.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Cache-Control",
"value": "max-age=0"
},
{
"name": "sec-ch-ua",
"value": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"101\""
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "Upgrade-Insecure-Requests",
"value": "1"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "navigate"
},
{
"name": "Sec-Fetch-User",
"value": "?1"
},
{
"name": "Sec-Fetch-Dest",
"value": "document"
},
{
"name": "Referer",
"value": "https://ysqbbs.com/k_misign-sign.html"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "Accept-Language",
"value": "zh-CN,zh;q=0.9"
},
{
"name": "Cookie",
"value": "{{cookie}}"
}
],
"cookies": [],
"data": "",
"mimeType": ""
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "formhash",
"re": "name=\"formhash\" value=\"(.+)\"",
"from": "content"
},
{
"name": "lxqd",
"re": "id=\"lxdays\" value=\"(.+)\">",
"from": "content"
},
{
"name": "qddj",
"re": "id=\"lxlevel\" value=\"(.+)\">",
"from": "content"
},
{
"name": "jfjl",
"re": "id=\"lxreward\" value=\"(.+)\">",
"from": "content"
},
{
"name": "zts",
"re": "id=\"lxtdays\" value=\"(.+)\">",
"from": "content"
},
{
"name": "zjf",
"re": "class=\"showmenu\">积分: (.+)</a>",
"from": "content"
},
{
"name": "ID",
"re": "title=\"访问我的空间\">(.+)</a>",
"from": "content"
}
]
}
},
{
"request": {
"method": "GET",
"url": "https://ysqbbs.com/plugin.php?id=k_misign%3Asign&operation=qiandao&formhash={{formhash|urlencode}}&format=empty&inajax=1&ajaxtarget=",
"headers": [
{
"name": "Host",
"value": "ysqbbs.com"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "sec-ch-ua",
"value": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"101\""
},
{
"name": "X-Requested-With",
"value": "XMLHttpRequest"
},
{
"name": "sec-ch-ua-mobile",
"value": "?0"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36"
},
{
"name": "sec-ch-ua-platform",
"value": "\"Windows\""
},
{
"name": "Accept",
"value": "*/*"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
},
{
"name": "Sec-Fetch-Dest",
"value": "empty"
},
{
"name": "Referer",
"value": "https://ysqbbs.com/k_misign-sign.html"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate, br"
},
{
"name": "Accept-Language",
"value": "zh-CN,zh;q=0.9"
}
],
"cookies": [],
"data": "",
"mimeType": ""
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
}
],
"failed_asserts": [],
"extract_variables": []
}
},
{
"comment": "Unicode转换\n",
"request": {
"method": "POST",
"url": "api://util/unicode",
"headers": [],
"cookies": [],
"data": "content=签到情况:\\r\\n账号【{{ID}}】\\r\\n今天获得【{{jfjl}}】积分 \\r\\n连续签到【{{lxqd}}】天 \\r\\n累计签到【{{zts}}】天 \\r\\n总【{{zjf}}】积分"
},
"rule": {
"success_asserts": [
{
"re": "200",
"from": "status"
},
{
"re": "\"状态\": \"OK\"",
"from": "content"
}
],
"failed_asserts": [],
"extract_variables": [
{
"name": "__log__",
"re": "\"转换后\": \"(.*)\"",
"from": "content"
}
]
}
}
]