From e007e679c3fc318df8eaaf564664bcad38498aa7 Mon Sep 17 00:00:00 2001 From: bipy Date: Thu, 4 Aug 2022 15:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20PT=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=9D=E5=8F=B7.har=20(#236)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加 PT通用登录保号.har * fix: regex * docs(README.md): add PT通用登录保号 --- PT通用登录保号.har | 61 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- tpls_history.json | 12 +++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 PT通用登录保号.har diff --git a/PT通用登录保号.har b/PT通用登录保号.har new file mode 100644 index 0000000..38f80de --- /dev/null +++ b/PT通用登录保号.har @@ -0,0 +1,61 @@ +[ + { + "request": { + "method": "GET", + "url": "https://{{domain}}/torrents.php", + "headers": [ + { "name": ":method", "value": "GET" }, + { "name": ":authority", "value": "{{domain}}" }, + { "name": ":scheme", "value": "https" }, + { "name": ":path", "value": "/torrents.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": "referer", "value": "https://{{domain}}/torrents.php" }, + { "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": [], + "extract_variables": [ + { "re": "下载量:.*?([\\d. KMGTP]+B)", "from": "content", "name": "xz" }, + { "re": "上传量:.*?([\\d. KMGTP]+B)", "from": "content", "name": "sc" } + ] + } + }, + { + "comment": "unicode转换", + "request": { + "method": "GET", + "url": "api://util/unicode?content={{domain}}%EF%BC%9A%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F:{{sc|urlencode}}%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F:{{xz|urlencode}}%E3%80%91", + "headers": [], + "cookies": [] + }, + "rule": { + "success_asserts": [ + { "re": "200", "from": "status" }, + { "re": "\"状态\": \"200\"", "from": "content" } + ], + "failed_asserts": [], + "extract_variables": [ + { "re": "\"转换后\": \"(.+)\"", "from": "content", "name": "__log__" } + ] + } + } + ] + \ No newline at end of file diff --git a/README.md b/README.md index 31bc190..487f360 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ Tips: | MyQQ | [FellBan](https://github.com/FellBan) | [MyQQ.har](https://github.com/qiandao-today/templates/blob/master/MyQQ.har) | 2022-07-05 19:58:00 | 首页Cookie
| | 老男人游戏网配套论坛 | [FellBan](https://github.com/FellBan) | [老男人游戏网配套论坛.har](https://github.com/qiandao-today/templates/blob/master/老男人游戏网配套论坛.har) | 2022-07-05 19:58:00 | 首页Cookie
| | 掌上百科账号版 | [AlisaCat-S](https://github.com/AlisaCat-S) | [掌上百科账号版.har](https://github.com/qiandao-today/templates/blob/master/掌上百科账号版.har) | 2022-07-05 19:58:00 | 用户名密码,转盘次数与种树时间可自行调整
签到+种树+兑换+转盘抽奖
| - +| PT通用登录保号 | [bipy](https://github.com/bipy) | [PT通用登录保号.har](PT通用登录保号.har) | 2022-07-31 19:30:00 | domain:域名, 如 pt.somept.com
cookie: PT的Cookie | ## 📄如何注册第三方库 diff --git a/tpls_history.json b/tpls_history.json index 046a628..cfb3f12 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -2079,6 +2079,18 @@ "date": "2022-07-17 11:05:00", "version":"20220717", "commenturl":"https://github.com/qiandao-today/templates/issues/235" + }, + "PT通用登录保号": { + "name": "PT通用登录保号", + "author": "bipy", + "url": "https://raw.githubusercontent.com/qiandao-today/templates/master/PT通用登录保号.har", + "update": false, + "comments": "domain:域名, 如 pt.somept.com
cookie: PT的Cookie", + "filename": "PT通用登录保号.har", + "content": "", + "date": "2022-07-31 19:30:00", + "version": "20220731", + "commenturl": "" } } }