From b0898f4bf88370aa844dec46a82f4f4cf7958af2 Mon Sep 17 00:00:00 2001
From: smallfawn <101914820+smallfawn@users.noreply.github.com>
Date: Sat, 25 Jan 2025 13:03:52 +0800
Subject: [PATCH] Create enshan.js
---
enshan.js | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 enshan.js
diff --git a/enshan.js b/enshan.js
new file mode 100644
index 0000000..252dbd7
--- /dev/null
+++ b/enshan.js
@@ -0,0 +1,68 @@
+
+import json
+import os
+import re
+
+import requests
+import urllib3
+
+from dailycheckin import CheckIn
+
+urllib3.disable_warnings()
+
+
+class EnShan(CheckIn):
+ name = "恩山无线论坛"
+
+ def __init__(self, check_item):
+ self.check_item = check_item
+
+ @staticmethod
+ def sign(cookie):
+ msg = []
+ headers = {
+ "User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 Safari/537.36",
+ "Cookie": cookie,
+ }
+ response = requests.get(
+ url="https://www.right.com.cn/FORUM/home.php?mod=spacecp&ac=credit&showcredit=1",
+ headers=headers,
+ verify=False,
+ )
+ try:
+ coin = re.findall("恩山币: (.*?) ", response.text)[0]
+ point = re.findall("积分: (.*?)