Skip to content

Commit

Permalink
Add HAR: 源社区签到 (#847)
Browse files Browse the repository at this point in the history
Co-authored-by: AIcxx <AIcxx@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and AIcxx authored Jan 22, 2025
1 parent 05e5bd6 commit e427f9d
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tpls_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -3852,6 +3852,18 @@
"date": "2025-01-15 20:18:40",
"version": "20250115",
"commenturl": "https://github.com/qd-today/templates/issues/782"
},
"源社区签到": {
"name": "源社区签到",
"author": "早点睡",
"url": "https://raw.githubusercontent.com/qd-today/templates/master/ysqqd.har",
"update": false,
"comments": "每日签到和查询账号信息<br>需要使用cookie",
"filename": "ysqqd.har",
"content": "W3siY29tbWVudCI6ICLnmbvpmYbvvIznp6/liIbpobUiLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIkdFVCIsICJ1cmwiOiAiaHR0cHM6Ly95c3FiYnMuY29tL2tfbWlzaWduLXNpZ24uaHRtbCIsICJoZWFkZXJzIjogW3sibmFtZSI6ICJIb3N0IiwgInZhbHVlIjogInlzcWJicy5jb20ifSwgeyJuYW1lIjogIkNvbm5lY3Rpb24iLCAidmFsdWUiOiAia2VlcC1hbGl2ZSJ9LCB7Im5hbWUiOiAiQ2FjaGUtQ29udHJvbCIsICJ2YWx1ZSI6ICJtYXgtYWdlPTAifSwgeyJuYW1lIjogInNlYy1jaC11YSIsICJ2YWx1ZSI6ICJcIiBOb3QgQTtCcmFuZFwiO3Y9XCI5OVwiLCBcIkNocm9taXVtXCI7dj1cIjEwMVwiIn0sIHsibmFtZSI6ICJzZWMtY2gtdWEtbW9iaWxlIiwgInZhbHVlIjogIj8wIn0sIHsibmFtZSI6ICJzZWMtY2gtdWEtcGxhdGZvcm0iLCAidmFsdWUiOiAiXCJXaW5kb3dzXCIifSwgeyJuYW1lIjogIlVwZ3JhZGUtSW5zZWN1cmUtUmVxdWVzd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9LCB7Im5hbWUiOiAiQWNjZXB0LUxhbmd1YWdlIiwgInZhbHVlIjogInpoLUNOLHpoO3E9MC45In1dLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICIiLCAibWltZVR5cGUiOiAiIn0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbeyJyZSI6ICIyMDAiLCAiZnJvbSI6ICJzdGF0dXMifV0sICJmYWlsZWRfYXNzZXJ0cyI6IFtdLCAiZXh0cmFjdF92YXJpYWJsZXMiOiBbXX19LCB7ImNvbW1lbnQiOiAiVW5pY29kZei9rOaNolxuIiwgInJlcXVlc3QiOiB7Im1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICJhcGk6Ly91dGlsL3VuaWNvZGUiLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJjb250ZW50PeetvuWIsOaDheWGte+8mlxcclxcbui0puWPt++8muOAkHt7SUR9feOAkVxcclxcbuS7iuWkqeiOt+W+l++8muOAkHt7amZqbH1944CR56ev5YiGIFxcclxcbui/nue7reetvuWIsO+8muOAkHt7bHhxZH1944CR5aSpIFxcclxcbue0r+iuoeetvuWIsO+8muOAkHt7enRzfX3jgJHlpKkgXFxyXFxu5oC744CQe3t6amZ9feOAkeenr+WIhiJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW3sicmUiOiAiMjAwIiwgImZyb20iOiAic3RhdHVzIn0sIHsicmUiOiAiXCLnirbmgIFcIjogXCJPS1wiIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICJcIui9rOaNouWQjlwiOiBcIiguKilcIiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=",
"date": "2025-01-22 09:40:19",
"version": "20250122",
"commenturl": "https://github.com/qd-today/templates/issues/846"
}
}
}
235 changes: 235 additions & 0 deletions ysqqd.har
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
[
{
"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"
}
]
}
}
]

0 comments on commit e427f9d

Please sign in to comment.