-
Notifications
You must be signed in to change notification settings - Fork 298
/
PtTime.har
145 lines (145 loc) · 4.72 KB
/
PtTime.har
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[
{
"request": {
"method": "GET",
"url": "https://www.pttime.org/attendance.php",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"name": ":authority",
"value": "www.pttime.org"
},
{
"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": "referer",
"value": "https://www.pttime.org/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.KMGB]+)",
"from": "content",
"name": "xz"
},
{
"re": "上传:.*?([\\d.KMGB]+)",
"from": "content",
"name": "sc"
},
{
"re": "分享率:</font>(.*?)</span>",
"from": "content",
"name": "fx"
},
{
"re": "签到获得.*?(\\d+)",
"from": "content",
"name": "qd"
},
{
"re": "使用&说明\\<\\/a\\>\\]:(.*?)\\[<a",
"from": "content",
"name": "ml"
},
{
"re": "class='.+_Name'><b>(.+?)</b>",
"from": "content",
"name": "_name"
}
]
}
},
{
"comment": "unicode转换",
"request": {
"method": "GET",
"url": "api://util/unicode?content=PTtime%EF%BC%9A%E3%80%90%E7%94%A8%E6%88%B7%E5%90%8D%3A{{_name|urlencode}}%E3%80%91%E3%80%90%E9%AD%94%E5%8A%9B%E5%80%BC%3A{{ml|urlencode}}%E3%80%91%E3%80%90%E7%AD%BE%E5%88%B0%E8%8E%B7%E5%BE%97%3A{{qd|urlencode}}%E3%80%91%5Cr%5Cn%E3%80%90%E5%88%86%E4%BA%AB%E7%8E%87%3A{{fx|urlencode}}%E3%80%91%E3%80%90%E4%B8%8A%E4%BC%A0%E9%87%8F%3A{{sc|urlencode}}%E3%80%91%E3%80%90%E4%B8%8B%E8%BD%BD%E9%87%8F%3A{{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__"
}
]
}
}
]