| @@ 160-174 (lines=15) @@ | ||
| 157 | print(f"{url} {tip}") |
|
| 158 | log(f"{url} {tip}") |
|
| 159 | ||
| 160 | def hdarea(self, session, url): |
|
| 161 | attendance_url = f"{url}/sign_in.php" |
|
| 162 | data = {"action": "sign_in"} |
|
| 163 | with session.post(attendance_url, data) as response: |
|
| 164 | r = re.compile(r"获得了\d+魔力值") |
|
| 165 | r1 = re.compile(r"重复") |
|
| 166 | log(response.text) |
|
| 167 | if r.search(response.text): |
|
| 168 | tip = "签到成功" |
|
| 169 | elif r1.search(response.text): |
|
| 170 | tip = "重复签到" |
|
| 171 | else: |
|
| 172 | tip = self.url |
|
| 173 | print(f"{url} {tip}") |
|
| 174 | log(f"{url} {tip}") |
|
| 175 | ||
| 176 | @staticmethod |
|
| 177 | def signin_discuz_dsu(session, url): |
|
| @@ 96-108 (lines=13) @@ | ||
| 93 | print(f"{url} {tip}") |
|
| 94 | log(f"{url} {tip}") |
|
| 95 | ||
| 96 | def lemonhd(self, session, url): |
|
| 97 | attendance_url = f"{url}/attendance.php" |
|
| 98 | with session.get(attendance_url) as response: |
|
| 99 | r = re.compile(r"已签到") |
|
| 100 | r1 = re.compile(r"请勿重复刷新") |
|
| 101 | if r.search(response.text): |
|
| 102 | tip = "签到成功" |
|
| 103 | elif r1.search(response.text): |
|
| 104 | tip = "重复签到" |
|
| 105 | else: |
|
| 106 | tip = self.url |
|
| 107 | print(f"{url} {tip}") |
|
| 108 | log(f"{url} {tip}") |
|
| 109 | ||
| 110 | @staticmethod |
|
| 111 | def btschool(session, url): |
|