File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/modules/indexer/parser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments