From f688def2077cfe8f9f46c90301fc52e531387347 Mon Sep 17 00:00:00 2001 From: AZhrZho <1137361788@qq.com> Date: Fri, 28 Mar 2025 21:33:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=88=AC=E8=99=AB?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spider-library_login_home.json | 155 ++++++++++++++++++ config/spiderlist/spiderlist.json | 7 + 2 files changed, 162 insertions(+) create mode 100644 config/spider-library_login_home/spider-library_login_home.json create mode 100644 config/spiderlist/spiderlist.json diff --git a/config/spider-library_login_home/spider-library_login_home.json b/config/spider-library_login_home/spider-library_login_home.json new file mode 100644 index 0000000..2ce8d5a --- /dev/null +++ b/config/spider-library_login_home/spider-library_login_home.json @@ -0,0 +1,155 @@ +{ + "name": "library_login_home", + "version": 1, + "engine": { + "cookie": true, + "redirect": true, + "forceSSL": true, + "delay": 500 + }, + "environment": ["ul", "pl", "redirect_url"], + "task": [ + { + "name": "get_lt", + "url": "https://zhlgd.whut.edu.cn/tpass/login?service=$(redirect_url)", + "method": "get", + "success": 200, + "content": { + "type": "regex", + "patten": "(LT-\\d+-.+?-tpass).+?(e\\d{1}s\\d{1})", + "value": [ + { + "key": "lt", + "path": "1" + }, + { + "key": "execution", + "path": "2" + } + ] + }, + "header": [], + "delay": 3000 + }, + { + "name": "ias_login", + "url": "https://zhlgd.whut.edu.cn/tpass/login?service=$(redirect_url)", + "method": "post", + "success": 200, + "payload": { + "type": "form", + "patten": "", + "value": [ + { + "key": "ul", + "value": "$(ul)", + "type": "string" + }, + { + "key": "pl", + "value": "$(pl)", + "type": "string" + }, + { + "key": "lt", + "value": "$(lt)", + "type": "string" + }, + { + "key": "execution", + "value": "$(execution)", + "type": "string" + }, + { + "key": "_eventId", + "value": "submit", + "type": "string" + } + ], + "header": [ + { + "key": "Host", + "value": "zhlgd.whut.edu.cn", + "type": "string" + }, + { + "key": "Origin", + "value": "https://zhlgd.whut.edu.cn", + "type": "string" + }, + { + "key": "Referer", + "value": "https://zhlgd.whut.edu.cn/tpass/login?service=$(redirect_url)", + "type": "string" + }, + { + "key": "Sec-Fetch-Dest", + "value": "document", + "type": "string" + }, + { + "key": "Sec-Fetch-Mode", + "value": "navigate", + "type": "string" + }, + { + "key": "Sec-Fetch-Site", + "value": "same-origin", + "type": "string" + }, + { + "key": "Sec-Fetch-User", + "value": "?1", + "type": "string" + }, + { + "key": "Upgrade-Insecure-Requests", + "value": "1", + "type": "string" + }, + { + "key": "sec-ch-ua", + "value": "\"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Microsoft Edge\";v=\"132\"", + "type": "string" + }, + { + "key": "sec-ch-ua-mobile", + "value": "?0", + "type": "string" + }, + { + "key": "sec-ch-ua-platform", + "value": "\"Windows\"", + "type": "string" + }, + { + "key": "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.7", + "type": "string" + }, + { + "key": "Accept-Encoding", + "value": "gzip, deflate, bar, zstd", + "type": "string" + }, + { + "key": "Cache-Control", + "value": "max-age=0", + "type": "string" + } + ] + }, + "content": { + "type": "regex", + "patten": "^.+$", + "value": [ + { + "key": "lib_home", + "path": "0" + } + ] + } + } + ], + "output": ["lib_home"] +} \ No newline at end of file diff --git a/config/spiderlist/spiderlist.json b/config/spiderlist/spiderlist.json new file mode 100644 index 0000000..f688ef5 --- /dev/null +++ b/config/spiderlist/spiderlist.json @@ -0,0 +1,7 @@ +[ + { + "key": "library_login_home", + "enable": true, + "version": 1 + } +] \ No newline at end of file -- Gitee