Commit 5225d0fb authored by 陈涛's avatar 陈涛

修改bug

parent 70124526
......@@ -181,7 +181,7 @@ class BeaconChaService:
total_income1d_xpath = "/html/body/main/div[1]/div[2]/div[2]/div/table/tbody/tr[3]/td/span/span[1]"
total_income7d_xpath = "/html/body/main/div[1]/div[2]/div[2]/div/table/tbody/tr[3]/td/span/span[2]"
total_income365d_xpath = "/html/body/main/div[1]/div[2]/div[2]/div/table/tbody/tr[3]/td/span/span[3]"
html = aio_request(f"{self.base_url}/validator/{index_or_pubkey}", json_res=False)
html = await aio_request(f"{self.base_url}/validator/{index_or_pubkey}", json_res=False)
# 解析 HTML 页面
tree = etree.HTML(html)
total_rewards_re = tree.xpath(total_reward_element_path)[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment