mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 21:07:50 +08:00
解决Github登录出现两个authenticity_token问题
This commit is contained in:
@@ -62,11 +62,10 @@ class Github(Search):
|
||||
return None
|
||||
if resp.status_code != 200:
|
||||
return None
|
||||
match = re.search(
|
||||
r'name="authenticity_token" value="(.*?)"', resp.text)
|
||||
match = re.findall(r'name="authenticity_token" value="(.*?)"', resp.text)
|
||||
if not match:
|
||||
return None
|
||||
return match.group(1)
|
||||
return match[1]
|
||||
|
||||
def search(self, full_search=False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user