Update enshan.py

This commit is contained in:
wd210010 authored and GitHub committed 2024-01-13 13:56:16 +08:00
1 parent 6d853f7865
commit f7795d0d62
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ headers = {
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)