Skip to content

Commit

Permalink
Update enshan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wd210010 authored Jan 13, 2024
1 parent 6d853f7 commit f7795d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enshan.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def Push(contents):
session = requests.session()
response = session.get('https://www.right.com.cn/FORUM/home.php?mod=spacecp&ac=credit&showcredit=1', headers=headers)
try:
coin = re.findall("恩山币: </em>(.*?)nb &nbsp;", response.text)[0]
coin = re.findall("恩山币: </em>(.*?)&nbsp;", response.text)[0]
point = re.findall("<em>积分: </em>(.*?)<span", response.text)[0]
res = f"恩山币:{coin}\n积分:{point}"
print(res)
Expand Down

0 comments on commit f7795d0

Please sign in to comment.