mirror of
https://github.com/qd-today/templates.git
synced 2026-11-23 18:24:36 +00:00
Co-authored-by: Herokine <Herokine@users.noreply.github.com>
150 lines
4.4 KiB
JSON
150 lines
4.4 KiB
JSON
[
|
|
{
|
|
"comment": "Fetch news page",
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "https://e-hentai.org/news.php",
|
|
"headers": [
|
|
{
|
|
"name": "accept\n",
|
|
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/jxl,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
},
|
|
{
|
|
"name": "accept-encoding",
|
|
"value": "gzip, deflate, br, zstd"
|
|
},
|
|
{
|
|
"name": "dnt",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "priority",
|
|
"value": "u=0, i"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua",
|
|
"value": "\"Not?A_Brand\";v=\"99\", \"Chromium\";v=\"130\""
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-mobile",
|
|
"value": "?0"
|
|
},
|
|
{
|
|
"name": "sec-ch-ua-platform",
|
|
"value": "\"Linux\""
|
|
},
|
|
{
|
|
"name": "sec-fetch-dest",
|
|
"value": "document"
|
|
},
|
|
{
|
|
"name": "sec-fetch-mode",
|
|
"value": "navigate"
|
|
},
|
|
{
|
|
"name": "sec-fetch-site\n",
|
|
"value": "none"
|
|
},
|
|
{
|
|
"name": "sec-fetch-user",
|
|
"value": "?1"
|
|
},
|
|
{
|
|
"name": "sec-gpc",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "upgrade-insecure-requests",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"name": "user-agent",
|
|
"value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
|
|
},
|
|
{
|
|
"name": "cookie",
|
|
"value": "{{cookie}}"
|
|
},
|
|
{
|
|
"name": "referer",
|
|
"value": "https://e-hentai.org/"
|
|
}
|
|
],
|
|
"cookies": [],
|
|
"data": ""
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "event_content",
|
|
"re": "<div id=\"eventpane\" .+?>(.+)<\\/div><div id=\"nb\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "Remove HTML tags",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content={{event_content|striptags}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [
|
|
{
|
|
"re": "You have encountered a monster!",
|
|
"from": "content"
|
|
}
|
|
],
|
|
"extract_variables": [
|
|
{
|
|
"name": "event_result",
|
|
"re": "\"转换后\": \"(.+)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"comment": "Print log",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "api://util/unicode",
|
|
"headers": [],
|
|
"cookies": [],
|
|
"data": "html_unescape=false&content=Result: {{event_result}}"
|
|
},
|
|
"rule": {
|
|
"success_asserts": [
|
|
{
|
|
"re": "200",
|
|
"from": "status"
|
|
}
|
|
],
|
|
"failed_asserts": [],
|
|
"extract_variables": [
|
|
{
|
|
"name": "__log__",
|
|
"re": "\"转换后\": \"(.+)\"",
|
|
"from": "content"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |