增加 PT通用登录保号.har (#236)

* 增加 PT通用登录保号.har

* fix: regex

* docs(README.md): add PT通用登录保号
This commit is contained in:
bipy 2022-08-04 15:37:57 +08:00 committed by GitHub
parent 4b3e4adec6
commit e007e679c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 1 deletions

61
PT通用登录保号.har Normal file
View File

@ -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__" }
]
}
}
]

View File

@ -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<br><https://bbs.myqqx.net> |
| 老男人游戏网配套论坛 | [FellBan](https://github.com/FellBan) | [老男人游戏网配套论坛.har](https://github.com/qiandao-today/templates/blob/master/老男人游戏网配套论坛.har) | 2022-07-05 19:58:00 | 首页Cookie<br><https://bbs.oldmanemu.net/> |
| 掌上百科账号版 | [AlisaCat-S](https://github.com/AlisaCat-S) | [掌上百科账号版.har](https://github.com/qiandao-today/templates/blob/master/掌上百科账号版.har) | 2022-07-05 19:58:00 | 用户名密码,转盘次数与种树时间可自行调整<br>签到+种树+兑换+转盘抽奖<br><https://www.pdawiki.com/> |
| PT通用登录保号 | [bipy](https://github.com/bipy) | [PT通用登录保号.har](PT通用登录保号.har) | 2022-07-31 19:30:00 | domain:域名, 如 pt.somept.com <br> cookie: PT的Cookie |
## 📄如何注册第三方库

View File

@ -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 <br> cookie: PT的Cookie",
"filename": "PT通用登录保号.har",
"content": "",
"date": "2022-07-31 19:30:00",
"version": "20220731",
"commenturl": ""
}
}
}