mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 19:59:20 +00:00
Add HAR: 百度网盘会员成长值签到 (#460)
Co-authored-by: 1eb <1eb@users.noreply.github.com>
This commit is contained in:
parent
f69be99592
commit
5414201087
File diff suppressed because one or more lines are too long
342
百度网盘会员成长值签到.har
Normal file
342
百度网盘会员成长值签到.har
Normal file
|
@ -0,0 +1,342 @@
|
|||
[
|
||||
{
|
||||
"comment": "签到",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://pan.baidu.com/rest/2.0/membership/level?app_id=250528&web=5&method=signin",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "application/json, text/plain, */*"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "X-Requested-With",
|
||||
"value": "XMLHttpRequest"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Site",
|
||||
"value": "same-origin"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Mode",
|
||||
"value": "cors"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Dest",
|
||||
"value": "empty"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://pan.baidu.com/wap/svip/growth/task"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
},
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookies}}"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "400",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "sign_point",
|
||||
"re": "points\":(\\d+)",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "signin_error_msg",
|
||||
"re": "\"error_msg\":\"(.*?)\",",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "延时3秒",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "api://util/delay/3",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "获取答案",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://pan.baidu.com/act/v2/membergrowv2/getdailyquestion?app_id=250528&web=5",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "application/json, text/plain, */*"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "X-Requested-With",
|
||||
"value": "XMLHttpRequest"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Site",
|
||||
"value": "same-origin"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Mode",
|
||||
"value": "cors"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Dest",
|
||||
"value": "empty"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://pan.baidu.com/wap/svip/growth/task"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
},
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookies}}"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "answer",
|
||||
"re": "\"answer\":(\\d+),",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "ask_id",
|
||||
"re": "\"ask_id\":(\\d+),",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "答题",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://pan.baidu.com/act/v2/membergrowv2/answerquestion?app_id=250528&web=5&ask_id={{ask_id|urlencode}}&answer={{answer|urlencode}}",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "application/json, text/plain, */*"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "X-Requested-With",
|
||||
"value": "XMLHttpRequest"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Site",
|
||||
"value": "same-origin"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Mode",
|
||||
"value": "cors"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Dest",
|
||||
"value": "empty"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://pan.baidu.com/wap/svip/growth/task"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
},
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookies}}"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "answer_msg",
|
||||
"re": "\"show_msg\":\"(.*?)\"",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "answer_score",
|
||||
"re": "\"score\":(\\d+)",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "获取用户信息",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://pan.baidu.com/rest/2.0/membership/user?app_id=250528&web=5&method=query",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Connection",
|
||||
"value": "keep-alive"
|
||||
},
|
||||
{
|
||||
"name": "Accept",
|
||||
"value": "application/json, text/plain, */*"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36"
|
||||
},
|
||||
{
|
||||
"name": "X-Requested-With",
|
||||
"value": "XMLHttpRequest"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Site",
|
||||
"value": "same-origin"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Mode",
|
||||
"value": "cors"
|
||||
},
|
||||
{
|
||||
"name": "Sec-Fetch-Dest",
|
||||
"value": "empty"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://pan.baidu.com/wap/svip/growth/task"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Encoding",
|
||||
"value": "gzip, deflate"
|
||||
},
|
||||
{
|
||||
"name": "Accept-Language",
|
||||
"value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
},
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookies}}"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "current_value",
|
||||
"re": "current_value\":(\\d+),",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "current_level",
|
||||
"re": "current_level\":(\\d+),",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "Unicode转换",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/unicode",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "content=签到获得{{sign_point}}{{signin_error_msg}}\\r\\n答题获得{{answer_score}}{{answer_msg}}\\r\\n当前会员等级{{current_level}},成长值{{current_value}}"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "\"状态\": \"200\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "__log__",
|
||||
"re": "\"转换后\": \"(.*)\"",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user