mirror of
https://github.com/qiandao-today/templates.git
synced 2025-04-04 22:42:45 +00:00
parent
fc4dd87370
commit
d55c1f90b5
119
PT通用签到保号.har
Normal file
119
PT通用签到保号.har
Normal file
|
@ -0,0 +1,119 @@
|
|||
[
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://{{domain}}/attendance.php",
|
||||
"headers": [
|
||||
{
|
||||
"name": ":method",
|
||||
"value": "GET"
|
||||
},
|
||||
{
|
||||
"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]+今日签到排名:<b>\\d+</b> / <b>\\d+</b>",
|
||||
"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={{domain}}: {{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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
149
PT通用过CF签到保号.har
Normal file
149
PT通用过CF签到保号.har
Normal file
|
@ -0,0 +1,149 @@
|
|||
[
|
||||
{
|
||||
"comment": "手动输入 JSON 以适配修改过的 pt 站",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{% if flaresolverr_json %}",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{flaresolverr_url}}",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"cookies": [],
|
||||
"data": "{\n \"cmd\": \"request.get\",\n \"url\": \"https://{{domain}}/attendance.php\",\n \"cookies\": [\n {\n \"name\": \"c_secure_login\",\n \"value\": \"{{c_secure_login}}\",\n \"domain\": \"{{domain}}\"\n },\n {\n \"name\": \"c_secure_pass\",\n \"value\": \"{{c_secure_pass}}\",\n \"domain\": \"{{domain}}\"\n },\n {\n \"name\": \"c_secure_uid\",\n \"value\": \"{{c_secure_uid}}\",\n \"domain\": \"{{domain}}\"\n }\n ],\n \"maxTimeout\": 60000\n}",
|
||||
"mimeType": "application/json"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "你需要启用cookies才能登录或切换语言",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "traffic",
|
||||
"re": "\\\\u4e0a\\\\u4f20\\\\u91cf.*\\\\u5f53\\\\u524d\\\\u6d3b\\\\u52a8",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "判断条件不成立",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{% else %}",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "使用自定义 JSON",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{flaresolverr_url}}",
|
||||
"headers": [
|
||||
{
|
||||
"name": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"cookies": [],
|
||||
"data": "{{flaresolverr_json}}",
|
||||
"mimeType": "application/json"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [
|
||||
{
|
||||
"re": "你需要启用cookies才能登录或切换语言",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "traffic",
|
||||
"re": "\\\\u4e0a\\\\u4f20\\\\u91cf.*\\\\u5f53\\\\u524d\\\\u6d3b\\\\u52a8",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "判断块结束",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{% endif %}",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": ""
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "通知",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "api://util/string/replace",
|
||||
"headers": [],
|
||||
"cookies": [],
|
||||
"data": "r=text&p=当前活动&t=&s={{ unicode(traffic) | striptags }}"
|
||||
},
|
||||
"rule": {
|
||||
"success_asserts": [
|
||||
{
|
||||
"re": "200",
|
||||
"from": "status"
|
||||
},
|
||||
{
|
||||
"re": "\"状态\": \"OK\"",
|
||||
"from": "content"
|
||||
}
|
||||
],
|
||||
"failed_asserts": [],
|
||||
"extract_variables": [
|
||||
{
|
||||
"name": "__log__",
|
||||
"re": ".*",
|
||||
"from": "content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -2545,7 +2545,31 @@
|
|||
"version": "20230425",
|
||||
"commenturl": "https://github.com/qd-today/templates/issues/326"
|
||||
},
|
||||
"torrentleech": {
|
||||
"PT通用签到保号": {
|
||||
"name": "PT通用签到保号",
|
||||
"author": "IITII",
|
||||
"url": "https://raw.githubusercontent.com/qiandao-today/templates/master/PT通用签到保号.har",
|
||||
"update": false,
|
||||
"comments": "用户 Cookies 从 F12 .php 请求获取. 签到结果获取目前只适配了原版 NexusPHP",
|
||||
"filename": "PT通用签到保号.har",
|
||||
"content": "",
|
||||
"date": "2023-05-04 22:30:00",
|
||||
"version": "20230504",
|
||||
"commenturl": "https://github.com/qiandao-today/templates/issues/328"
|
||||
},
|
||||
"PT通用过CF签到保号": {
|
||||
"name": "PT通用过CF签到保号",
|
||||
"author": "IITII",
|
||||
"url": "https://raw.githubusercontent.com/qiandao-today/templates/master/PT通用过CF签到保号.har",
|
||||
"update": false,
|
||||
"comments": "c_secure_uid, c_secure_pass, c_secure_login 自行从 cookies 里面提取<br>flaresolverr 地址填写格式: http://{ip}:{port}/v1, 比如 http://localhost:8191/v1<br>具体看评论区",
|
||||
"filename": "PT通用过CF签到保号.har",
|
||||
"content": "",
|
||||
"date": "2023-05-04 22:30:00",
|
||||
"version": "20230504",
|
||||
"commenturl": "https://github.com/qiandao-today/templates/issues/329"
|
||||
},
|
||||
"op.gg自动刷新LOL战绩": {
|
||||
"name": "op.gg自动刷新LOL战绩",
|
||||
"author": "嘉然今天吃什么",
|
||||
"url": "https://raw.githubusercontent.com/qd-today/templates/master/op.gg自动刷新LOL战绩.har",
|
||||
|
|
Loading…
Reference in New Issue
Block a user