feat 支持新版本mteam
This commit is contained in:
parent
e298a1a8a0
commit
7c4c3b3f9a
@ -22,14 +22,12 @@ class SiteUtils:
|
|||||||
' or contains(@href, "mybonus") '
|
' or contains(@href, "mybonus") '
|
||||||
' or contains(@onclick, "logout")'
|
' or contains(@onclick, "logout")'
|
||||||
' or contains(@href, "usercp")]',
|
' or contains(@href, "usercp")]',
|
||||||
'//form[contains(@action, "logout")]']
|
'//form[contains(@action, "logout")]',
|
||||||
|
'//div[@class="user-info-side"]',
|
||||||
|
'//a[contains(@href, "/profile/detail/")]']
|
||||||
for xpath in xpaths:
|
for xpath in xpaths:
|
||||||
if html.xpath(xpath):
|
if html.xpath(xpath):
|
||||||
return True
|
return True
|
||||||
user_info_div = html.xpath('//div[@class="user-info-side"]')
|
|
||||||
if user_info_div:
|
|
||||||
return True
|
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user