mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 19:59:20 +00:00
Add HAR: 文心一格 (#489)
Co-authored-by: chen8945 <chen8945@users.noreply.github.com>
This commit is contained in:
parent
b7aceb41ba
commit
1658ddeb15
|
@ -2928,6 +2928,18 @@
|
|||
"date": "2023-11-22 16:27:26",
|
||||
"version": "20231122",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/486"
|
||||
},
|
||||
"文心一格": {
|
||||
"name": "文心一格",
|
||||
"author": "chen8945",
|
||||
"url": "https://raw.githubusercontent.com/qd-today/templates/master/文心一格.har",
|
||||
"update": false,
|
||||
"comments": "Cookie,完整Cookie或者BDUSS字段均可<br>https://yige.baidu.com/",
|
||||
"filename": "文心一格.har",
|
||||
"content": "W3siY29tbWVudCI6ICLov5Tlm57lr7nlupTml7bpl7TmiLPlkozml7bpl7QiLCAicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImFwaTovL3V0aWwvdGltZXN0YW1wIiwgImhlYWRlcnMiOiBbXSwgImNvb2tpZXMiOiBbXSwgImRhdGEiOiAidHM9JmZvcm09JmR0PSJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW3sicmUiOiAiMjAwIiwgImZyb20iOiAic3RhdHVzIn1dLCAiZmFpbGVkX2Fzc2VydHMiOiBbXSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJ0aW1lIiwgInJlIjogIlwiMTbkvY3ml7bpl7TmiLNcIjogKFxcZHsxM30pIiwgImZyb20iOiAiY29udGVudCJ9XX19LCB7InJlcXVlc3QiOiB7Im1ldGhvZCI6ICJHRVQiLCAidXJsIjogImh0dHBzOi8veWlnZS5iYWlkdS5jb20vYXBpL3QycC9wb2ludHMvdGFza19jb21wbGV0ZT90PXt7dGltZX19JmFwcG5hbWU9cGMmcHRhc2tfdHlwZT02IiwgImhlYWRlcnMiOiBbeyJuYW1lIjogIkNvb2tpZSIsICJ2YWx1ZSI6IC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9wYWlkfX0ifSwgInJ1bGUiOiB7InN1Y2Nlc3NfYXNzZXJ0cyI6IFt7InJlIjogIjIwMCIsICJmcm9tIjogInN0YXR1cyJ9LCB7InJlIjogIlwi54q25oCBXCI6IFwiMjAwXCIiLCAiZnJvbSI6ICJjb250ZW50In1dLCAiZmFpbGVkX2Fzc2VydHMiOiBbXSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJfX2xvZ19fIiwgInJlIjogIlwi6L2s5o2i5ZCOXCI6IFwiKC4qKVwiIiwgImZyb20iOiAiY29udGVudCJ9XX19XQ==",
|
||||
"date": "2023-11-22 17:40:00",
|
||||
"version": "20231122",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/488"
|
||||
}
|
||||
}
|
||||
}
|
163
文心一格.har
Normal file
163
文心一格.har
Normal file
|
@ -0,0 +1,163 @@
|
|||
[
|
||||
{
|
||||
"comment": "返回对应时间戳和时间",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/timestamp",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "ts=&form=&dt="
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "time",
|
||||
"re": "\"16位时间戳\": (\\d{13})",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://yige.baidu.com/api/t2p/points/task_complete?t={{time}}&appname=pc&ptask_type=6",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookie}}"
|
||||
},
|
||||
{
|
||||
"name": "Host",
|
||||
"value": "yige.baidu.com"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://yige.baidu.com/personal/center"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "already signed",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "need login",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"re": "permission denied",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://yige.baidu.com/api/t2p/points/account_balance?t={{time}}&appname=pc&need_detail=1",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Cookie",
|
||||
"value": "{{cookie}}"
|
||||
},
|
||||
{
|
||||
"name": "Host",
|
||||
"value": "yige.baidu.com"
|
||||
},
|
||||
{
|
||||
"name": "Referer",
|
||||
"value": "https://yige.baidu.com/personal/center"
|
||||
},
|
||||
{
|
||||
"name": "User-Agent",
|
||||
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"
|
||||
}
|
||||
],
|
||||
"cookies": []
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "need login",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "balance",
|
||||
"re": "\"balance\":(\\d+)",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "balance_free",
|
||||
"re": "\"balance_free\":(\\d+)",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "balance_paid",
|
||||
"re": "\"balance_paid\":(\\d+)",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "Unicode转换",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/unicode",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "html_unescape=false&content=总电量:{{balance}},免费电量:{{balance_free}},付费电量:{{balance_paid}}"
|
||||
},
|
||||
"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