mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 19:59:20 +00:00
Update HAR: m-team-cookie-flaresolverr (#542)
Co-authored-by: a76yyyy <a76yyyy@users.noreply.github.com>
This commit is contained in:
parent
374c27976c
commit
408cb0e346
|
@ -1,76 +1,76 @@
|
|||
[
|
||||
{
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{flaresolverr_url}}",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
{
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{flaresolverr_url}}",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"cookies": [],
|
||||
"data": "{\n \"cmd\": \"request.get\",\n \"url\":\"https://kp.m-team.cc/userdetails.php?id={{userid}}\",\n \"cookies\": [{\"name\": \"tp\", \"value\": \"{{cookies_value_tp}}\", \"domain\": \"kp.m-team.cc\"}],\n \"maxTimeout\": 60000\n}"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "https://kp.m-team.cc/login.php\\?returnto=",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"re": "\"status\": \"error\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "title",
|
||||
"re": ".*</title>",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "traffic",
|
||||
"re": "color_ratio\\\\\"[\\s\\S]+color_active",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"cookies": [],
|
||||
"data": "{\n \"cmd\": \"request.get\",\n \"url\":\"https://kp.m-team.cc/userdetails.php?id={{userid}}\",\n \"cookies\": [{\"name\": \"tp\", \"value\": \"{{cookies_value_tp}}\", \"domain\": \"kp.m-team.cc\"}],\n \"maxTimeout\": 60000\n}"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "https://kp.m-team.cc/login.php\\?returnto=",
|
||||
"from": "content"
|
||||
{
|
||||
"comment": "字符串替换",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/string/replace",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "r=text&p=font&s={{regex_replace(regex_replace(unicode(traffic), \"([<>]|color_\\w+|font)\", \"\"), \"(class=)?\\\"(\\n)?\\\"?\") | replace(\"/\", \"\")|urlencode}}&t=tt"
|
||||
},
|
||||
{
|
||||
"re": "\"status\": \"error\"",
|
||||
"from": "content"
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "\"状态\": \"OK\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "__log__",
|
||||
"re": ".*",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "title",
|
||||
"re": ".*</title>",
|
||||
"from": "content"
|
||||
},
|
||||
{
|
||||
"name": "traffic",
|
||||
"re": "color_ratio\\\\\"[\\s\\S]+color_active",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "字符串替换",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/string/replace",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "r=text&p=font&s={{regex_replace(regex_replace(unicode(traffic), \"([<>]|color_\\w+|font)\", \"\"), \"(class=)?\\\"(\\n)?\\\"?\") | replace(\"/\", \"\")|urlencode}}&t=tt"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "\"状态\": \"OK\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "__log__",
|
||||
"re": ".*",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
|
@ -2043,14 +2043,14 @@
|
|||
},
|
||||
"m-team-cookie-flaresolverr": {
|
||||
"name": "m-team-cookie-flaresolverr",
|
||||
"author": "Sinkerine",
|
||||
"author": "Sinkerine,404gods",
|
||||
"url": "https://raw.githubusercontent.com/qd-today/templates/master/m-team-cookie-flaresolverr.har",
|
||||
"update": false,
|
||||
"comments": "cookies_value_tp: Cookies 中 \"tp\" key 的值<br>userid: userdetails.php?id={{userid}} 的用户 id<br>FlareSolverr url. 如 http://localhost:8191/v1",
|
||||
"update": true,
|
||||
"comments": "cookies_value_tp: Cookies 中 \\\"tp\\\" key 的值<br>userid: userdetails.php?id={{userid}} 的用户 id<br>FlareSolverr url: 如 http://localhost:8191/v1",
|
||||
"filename": "m-team-cookie-flaresolverr.har",
|
||||
"content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogInt7ZmxhcmVzb2x2ZXJyX3VybH19IiwgImhlYWRlcnMiOiBbeyJuYW1lIjogIkNvbnRlbnQtVHlwZSIsICJ2YWx1ZSI6ICJhcHBsaWNhdGlvbi9qc29uIn1dLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJ7XG4gIFwiY21kXCI6IFwicmVxdWVzdC5nZXRcIixcbiAgXCJ1cmxcIjpcImh0dHBzOi8va3AubS10ZWFtLmNjL3VzZXJkZXRhaWxzLnBocD9pZD17e3VzZXJpZH19XCIsXG4gIFwiY29va2llc1wiOiBbe1wibmFtZVwiOiBcInRwXCIsIFwidmFsdWVcIjog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iAic3RhdHVzIn0sIHsicmUiOiAiXCLnirbmgIFcIjogXCJPS1wiIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICIuKiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=",
|
||||
"date": "2023-03-14 16:00:00",
|
||||
"version": "20230314",
|
||||
"date": "2024-02-18 12:20:50",
|
||||
"version": "20240218",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/225"
|
||||
},
|
||||
"掌上百科账号版": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user