mirror of
https://github.com/wd210010/only_for_happly.git
synced 2026-11-06 04:36:44 +08:00
Update enshan.py
This commit is contained in:
1 parent
6d853f7865
commit
f7795d0d62
1 file changed
+1
-1
@@ -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 ", response.text)[0]
|
||||
coin = re.findall("恩山币: </em>(.*?) ", response.text)[0]
|
||||
point = re.findall("<em>积分: </em>(.*?)<span", response.text)[0]
|
||||
res = f"恩山币:{coin}\n积分:{point}"
|
||||
print(res)
|
||||
|
||||
Reference in new issue
Block a user