From e2ae12b66d68d6b681125d35d7ae1626e37d5ce2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:18:43 +0800 Subject: [PATCH] =?UTF-8?q?Add=20HAR:=20=E6=B7=B1=E5=A4=9C=E8=AF=BB?= =?UTF-8?q?=E4=B9=A6=E4=BC=9A=20(#793)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: loveqianool --- ritdon.har | 86 +++++++++++++++++++++++++++++++++++++++++++++++ tpls_history.json | 12 +++++++ 2 files changed, 98 insertions(+) create mode 100644 ritdon.har diff --git a/ritdon.har b/ritdon.har new file mode 100644 index 0000000000..8c22bf9afd --- /dev/null +++ b/ritdon.har @@ -0,0 +1,86 @@ +[ + { + "request": { + "method": "POST", + "url": "http://ritdon.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1", + "headers": [], + "cookies": [], + "data": "username={{username}}&password={{password}}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [], + "extract_variables": [] + } + }, + { + "request": { + "method": "GET", + "url": "http://ritdon.com/home.php?mod=spacecp&ac=credit&showcredit=1", + "headers": [], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "u", + "re": "空间\">(.+?)<", + "from": "content" + }, + { + "name": "j", + "re": ">(积分: \\d+)<", + "from": "content" + }, + { + "name": "g", + "re": "(用户组: .+)<", + "from": "content" + } + ] + } + }, + { + "comment": "Unicode转换", + "request": { + "method": "POST", + "url": "api://util/unicode", + "headers": [], + "cookies": [], + "data": "html_unescape=false&content= {{u}} {{j}} {{g}}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + }, + { + "re": "\"状态\": \"200\"", + "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 210ae25d68..dbf066945e 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -3756,6 +3756,18 @@ "date": "2024-11-09 23:10:34", "version": "20241109", "commenturl": "https://github.com/qd-today/templates/issues/796" + }, + "深夜读书会": { + "name": "深夜读书会", + "author": "z", + "url": "https://raw.githubusercontent.com/qd-today/templates/master/ritdon.har", + "update": false, + "comments": "http://ritdon.com/", + "filename": "ritdon.har", + "content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImh0dHA6Ly9yaXRkb24uY29tL21lbWJlci5waHA/bW9kPWxvZ2dpbmcmYWN0aW9uPWxvZ2luJmxvZ2luc3VibWl0PXllcyZpbmZsb2F0PXllcyZsc3N1Ym1pdD15ZXMmaW5hamF4PTEiLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJ1c2VybmFtZT17e3VzZXJuYW1lfX0mcGFzc3dvcmQ9e3twYXNzd29yZH19In0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbeyJyZSI6ICIyMDAiLCAiZnJvbSI6ICJzdGF0dXMifV0sICJmYWlsZWRfYXNzZXJ0cyI6IFtdLCAiZXh0cmFjdF92YXJpYWJsZXMiOiBbXX19LCB7InJlcXVlc3QiOiB7Im1ldGhvZCI6ICJHRVQiLCAidXJsIjogImh0dHA6Ly9yaXRkb24uY29tL2hvbWUucGhwP21vZD1zcGFjZWNwJmFjPWNyZWRpdCZzaG93Y3JlZGl0PTEiLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICIifSwgInJ1bGUiOiB7InN1Y2Nlc3NfYXNzZXJ0cyI6IFt7InJlIjogIjIwMCIsICJmcm9tIjogInN0YXR1cyJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAidSIsICJyZSI6ICLnqbrpl7RcIj4oLis/KTwiLCAiZnJvbSI6ICJjb250ZW50In0sIHsibmFtZSI6ICJqIiwgInJlIjogIj4o56ev5YiGOiBcXGQrKTwiLCAiZnJvbSI6ICJjb250ZW50In0sIHsibmFtZSI6ICJnIiwgInJlIjogIijnlKjmiLfnu4Q6IC4rKTwiLCAiZnJvbSI6ICJjb250ZW50In1dfX0sIHsiY29tbWVudCI6ICJVbmljb2Rl6L2s5o2iIiwgInJlcXVlc3QiOiB7Im1ldGhvZCI6ICJQT1NUIiwgInVybCI6ICJhcGk6Ly91dGlsL3VuaWNvZGUiLCAiaGVhZGVycyI6IFtdLCAiY29va2llcyI6IFtdLCAiZGF0YSI6ICJodG1sX3VuZXNjYXBlPWZhbHNlJmNvbnRlbnQ9IHt7dX19IHt7an19IHt7Z319In0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbeyJyZSI6ICIyMDAiLCAiZnJvbSI6ICJzdGF0dXMifSwgeyJyZSI6ICJcIueKtuaAgVwiOiBcIjIwMFwiIiwgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICJcIui9rOaNouWQjlwiOiBcIiguKilcIiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=", + "date": "2024-11-09 23:15:26", + "version": "20241109", + "commenturl": "https://github.com/qd-today/templates/issues/792" } } } \ No newline at end of file