From a6511717aa612e88a7a689372e15d8a5e04f0411 Mon Sep 17 00:00:00 2001 From: IITII Date: Sat, 29 Apr 2023 09:22:21 +0800 Subject: [PATCH] =?UTF-8?q?sharkpt=20=E9=B2=A8=E9=B1=BC=20=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=5F=E4=BF=9D=E5=8F=B7,=20torrentleech=20=E4=BF=9D?= =?UTF-8?q?=E5=8F=B7=20(#327)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add sharkpt * feat: add torrentleech * update tpls.json * fix: torrentleech notify --- sharkpt.har | 127 ++++++++++++++++++++++++++++++++++++++++++++++ torrentleech.har | 127 ++++++++++++++++++++++++++++++++++++++++++++++ tpls_history.json | 24 +++++++++ 3 files changed, 278 insertions(+) create mode 100644 sharkpt.har create mode 100644 torrentleech.har diff --git a/sharkpt.har b/sharkpt.har new file mode 100644 index 0000000..4806cac --- /dev/null +++ b/sharkpt.har @@ -0,0 +1,127 @@ +[ + { + "request": { + "method": "GET", + "url": "https://sharkpt.net/attendance.php", + "headers": [ + { + "name": ":method", + "value": "GET" + }, + { + "name": ":authority", + "value": "sharkpt.net" + }, + { + "name": ":scheme", + "value": "https" + }, + { + "name": ":path", + "value": "/attendance.php" + }, + { + "name": "upgrade-insecure-requests", + "value": "1" + }, + { + "name": "dnt", + "value": "1" + }, + { + "name": "user-agent", + "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" + }, + { + "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.9" + }, + { + "name": "sec-fetch-site", + "value": "same-origin" + }, + { + "name": "sec-fetch-mode", + "value": "navigate" + }, + { + "name": "sec-fetch-user", + "value": "?1" + }, + { + "name": "sec-fetch-dest", + "value": "document" + }, + { + "name": "accept-encoding", + "value": "gzip, deflate, br" + }, + { + "name": "accept-language", + "value": "zh-CN,zh;q=0.9" + }, + { + "name": "cookie", + "value": "{{cookie}}" + } + ], + "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]+当前活动", + "from": "content" + } + ] + } + }, + { + "comment": "字符串替换", + "request": { + "method": "POST", + "url": "api://util/string/replace", + "headers": [], + "cookies": [], + "data": "r=text&p=当前活动&t=&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" + } + ] + } + } +] \ No newline at end of file diff --git a/torrentleech.har b/torrentleech.har new file mode 100644 index 0000000..622e7f8 --- /dev/null +++ b/torrentleech.har @@ -0,0 +1,127 @@ +[ + { + "request": { + "method": "GET", + "url": "https://www.torrentleech.org/torrents/browse/index", + "headers": [ + { + "name": ":method", + "value": "GET" + }, + { + "name": ":authority", + "value": "www.torrentleech.org" + }, + { + "name": ":scheme", + "value": "https" + }, + { + "name": ":path", + "value": "/torrents/browse/index" + }, + { + "name": "upgrade-insecure-requests", + "value": "1" + }, + { + "name": "dnt", + "value": "1" + }, + { + "name": "user-agent", + "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" + }, + { + "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.9" + }, + { + "name": "sec-fetch-site", + "value": "same-origin" + }, + { + "name": "sec-fetch-mode", + "value": "navigate" + }, + { + "name": "sec-fetch-user", + "value": "?1" + }, + { + "name": "sec-fetch-dest", + "value": "document" + }, + { + "name": "accept-encoding", + "value": "gzip, deflate, br" + }, + { + "name": "accept-language", + "value": "zh-CN,zh;q=0.9" + }, + { + "name": "cookie", + "value": "{{cookie}}" + } + ], + "cookies": [] + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [ + { + "re": "Login", + "from": "content" + } + ], + "extract_variables": [ + { + "name": "recheck_cnt", + "re": "Uploaded[\\s\\S]+Achievements", + "from": "content" + }, + { + "name": "traffic", + "re": "分享率[:][\\s\\S]+当前活动", + "from": "content" + } + ] + } + }, + { + "comment": "字符串替换", + "request": { + "method": "POST", + "url": "api://util/string/replace", + "headers": [], + "cookies": [], + "data": "r=text&p=当前活动&t=&s={{traffic | striptags}} {{regex_replace(recheck_cnt | striptags, \"[><]\", \"\")}}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + }, + { + "re": "\"状态\": \"OK\"", + "from": "content" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "__log__", + "re": ".*", + "from": "content" + } + ] + } + } +] \ No newline at end of file diff --git a/tpls_history.json b/tpls_history.json index f856529..66269f4 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -2532,6 +2532,30 @@ "date": "2023-04-12 12:20:00", "version": "20230412", "commenturl": "https://github.com/qiandao-today/templates/issues/316" + }, + "sharkpt": { + "name": "sharkpt 鲨鱼 签到_保号", + "author": "IITII", + "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/sharkpt.har", + "update": false, + "comments": "用户 Cookies 从 F12 .php 请求获取", + "filename": "sharkpt.har", + "content": "", + "date": "2023-04-25 22:20:00", + "version": "20230425", + "commenturl": "https://github.com/qiandao-today/templates/issues/325" + }, + "torrentleech": { + "name": "torrentleech 保号", + "author": "IITII", + "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/torrentleech.har", + "update": false, + "comments": "用户 Cookies 从 F12 .php 请求获取. 数据没有过多清洗", + "filename": "torrentleech.har", + "content": "", + "date": "2023-04-25 22:30:00", + "version": "20230425", + "commenturl": "https://github.com/qiandao-today/templates/issues/326" } } }