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