Code Duplication    Length = 14-14 lines in 2 locations

ck_site.py 2 locations

@@ 126-139 (lines=14) @@
123
                print(f"{url} {tip}")
124
            log(f"{url} {tip}")
125
126
    @staticmethod
127
    def haidan(session, url):
128
        attendance_url = f"{url}/signin.php"
129
        with session.get(attendance_url) as response:
130
            r = re.compile(r"已经打卡")
131
            r1 = re.compile(r"退出")
132
            if r.search(response.text):
133
                tip = "签到成功"
134
            elif r1.search(response.text):
135
                tip = "重复签到"
136
            else:
137
                tip = "cookie 已过期或网站类型不对!"
138
                print(f"{url} {tip}")
139
            log(f"{url} {tip}")
140
141
    def pterclub(self, session, url):
142
        attendance_url = f"{url}/attendance-ajax.php"
@@ 81-94 (lines=14) @@
78
                print(f"{url} {tip}")
79
            log(f"{url} {tip}")
80
81
    @staticmethod
82
    def hdtime(session, url):
83
        attendance_url = f"{url}/attendance.php"
84
        with session.get(attendance_url) as response:
85
            r = re.compile(r"签到成功")
86
            r1 = re.compile(r"请勿重复刷新")
87
            if r.search(response.text):
88
                tip = "签到成功"
89
            elif r1.search(response.text):
90
                tip = "重复签到"
91
            else:
92
                tip = "cookie已过期"
93
                print(f"{url} {tip}")
94
            log(f"{url} {tip}")
95
96
    def lemonhd(self, session, url):
97
        attendance_url = f"{url}/attendance.php"