优化st提取

This commit is contained in:
Cp0204 2024-04-03 12:52:18 +08:00
parent c4b35d9a27
commit d526d8d056

View File

@ -95,8 +95,8 @@ class Quark:
self.st = self.match_st_form_cookie(cookie)
def match_st_form_cookie(self, cookie):
st = re.findall(r"st[a-zA-Z0-9]+", cookie)
return st[0] if st else False
match = re.search(r'=(st[a-zA-Z0-9]+);', cookie)
return match.group(1) if match else False
def common_headers(self):
headers = {