Skip to content

Commit af7e1e7

Browse files
authored
Merge pull request jxxghp#5509 from xiaoQQya/develop
2 parents 26e41e1 + 1bb2b50 commit af7e1e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/modules/indexer/parser/nexus_hhanclub.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def _parse_user_detail_info(self, html_text: str):
5050
if not StringUtils.is_valid_html_element(html):
5151
return
5252
# 加入时间
53-
join_at_text = html.xpath('//*[@id="mainContent"]/div/div[2]/div[4]/div[3]/span[2]/text()[1]')
53+
join_at_text = html.xpath('//div[@class="grid grid-cols-3 justify-items-start gap-4 leading-6 text-base"][2]/div[4]/span[2]/span/@title')
5454
if join_at_text:
55-
self.join_at = StringUtils.unify_datetime_str(join_at_text[0].split(' (')[0].strip())
55+
self.join_at = StringUtils.unify_datetime_str(join_at_text[0].strip())
5656
finally:
5757
if html is not None:
5858
del html
5959

6060
def _get_user_level(self, html):
6161
super()._get_user_level(html)
62-
user_level_path = html.xpath('//*[@id="mainContent"]/div/div[2]/div[2]/div[4]/span[2]/img/@title')
62+
user_level_path = html.xpath('//b[@class="User_Name"]/text()')
6363
if user_level_path:
6464
self.user_level = user_level_path[0]

0 commit comments

Comments
 (0)