mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-12 15:20:44 +08:00
优化st提取
This commit is contained in:
parent
c4b35d9a27
commit
d526d8d056
@ -95,8 +95,8 @@ class Quark:
|
|||||||
self.st = self.match_st_form_cookie(cookie)
|
self.st = self.match_st_form_cookie(cookie)
|
||||||
|
|
||||||
def match_st_form_cookie(self, cookie):
|
def match_st_form_cookie(self, cookie):
|
||||||
st = re.findall(r"st[a-zA-Z0-9]+", cookie)
|
match = re.search(r'=(st[a-zA-Z0-9]+);', cookie)
|
||||||
return st[0] if st else False
|
return match.group(1) if match else False
|
||||||
|
|
||||||
def common_headers(self):
|
def common_headers(self):
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user