From ab9585e7f77cfbc9e6f2cb78928b260ff6ab17e7 Mon Sep 17 00:00:00 2001 From: IITII Date: Fri, 17 Mar 2023 04:41:19 +0000 Subject: [PATCH] =?UTF-8?q?site:=20hdatmos/=E9=98=BF=E7=AB=A5=E6=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hdatmos.har | 73 +++++++++++++++++++++++++++++++++++++++++++++++ tpls_history.json | 12 ++++++++ 2 files changed, 85 insertions(+) create mode 100644 hdatmos.har diff --git a/hdatmos.har b/hdatmos.har new file mode 100644 index 0000000..9d22bab --- /dev/null +++ b/hdatmos.har @@ -0,0 +1,73 @@ +[ + { + "request": { + "method": "GET", + "url": "https://hdatmos.club/attendance.php", + "headers": [ + { "name": ":authority", "value": "hdatmos.club" }, + { "name": ":method", "value": "GET" }, + { "name": ":path", "value": "/attendance.php" }, + { "name": ":scheme", "value": "https" }, + { + "name": "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" + }, + { "name": "accept-encoding", "value": "gzip, deflate, br" }, + { "name": "accept-language", "value": "zh-CN,zh;q=0.9" }, + { "name": "cache-control", "value": "no-cache" }, + { "name": "cookie", "value": "{{cookie}}" }, + { "name": "dnt", "value": "1" }, + { "name": "pragma", "value": "no-cache" }, + { "name": "referer", "value": "https://hdatmos.club/userdetails.php" }, + { + "name": "sec-ch-ua", + "value": "\"Google Chrome\";v=\"111\", \"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"111\"" + }, + { "name": "sec-ch-ua-mobile", "value": "?0" }, + { "name": "sec-ch-ua-platform", "value": "\"macOS\"" }, + { "name": "sec-fetch-dest", "value": "document" }, + { "name": "sec-fetch-mode", "value": "navigate" }, + { "name": "sec-fetch-site", "value": "same-origin" }, + { "name": "sec-fetch-user", "value": "?1" }, + { "name": "upgrade-insecure-requests", "value": "1" }, + { + "name": "user-agent", + "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" + } + ], + "cookies": [] + }, + "rule": { + "success_asserts": [{ "re": "200", "from": "status" }], + "failed_asserts": [{ "re": "关闭维护", "from": "content" }], + "extract_variables": [ + { + "name": "recheck_cnt", + "re": "第[\\s\\S]+今日签到排名:\\d+ / \\d+", + "from": "content" + }, + { "name": "traffic", "re": "分享率[\\s\\S]+GB", "from": "content" } + ] + } + }, + { + "comment": "字符串替换", + "request": { + "method": "POST", + "url": "api://util/string/replace", + "headers": [], + "cookies": [], + "data": "r=text&p=fontt&t=tt&s={{traffic | striptags}} {{regex_replace(recheck_cnt | striptags, \"点击[\\s\\S]+目前\", \"\")}}" + }, + "rule": { + "success_asserts": [ + { "re": "200", "from": "status" }, + { "re": "\"状态\": \"OK\"", "from": "content" } + ], + "failed_asserts": [], + "extract_variables": [ + { "name": "__log__", "re": ".*", "from": "content" } + ] + } + } +] diff --git a/tpls_history.json b/tpls_history.json index 5f45e89..1dc6076 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -2304,6 +2304,18 @@ "date": "2023-02-27 00:30:00", "version": "20230227", "commenturl": "https://github.com/qiandao-today/templates/issues/287" + }, + "hdatmos": { + "name": "hdatmos/阿童木", + "author": "iitii", + "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/hdatmos.har", + "update": false, + "comments": "用户 Cookies 从 F12 .php 请求获取", + "filename": "hdatmos.har", + "content": "", + "date": "2023-03-17 12:30:00", + "version": "20230227", + "commenturl": "https://github.com/qiandao-today/templates/issues/293" } } } \ No newline at end of file