mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
fix: 修复咔叽网单(待测试)
This commit is contained in:
parent
f4771c8c6e
commit
9e2cdebda1
@ -16,15 +16,17 @@ class WWW2nzzCheckIn:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def sign(session):
|
def sign(session):
|
||||||
|
response = session.get("http://www.2nzz.com/index.php", verify=False)
|
||||||
|
formhash = re.findall(r'<input type="hidden" name="formhash" value="(.*?)"', response.text)[0]
|
||||||
params = (
|
params = (
|
||||||
("id", "dsu_paulsign:sign"),
|
("id", "dsu_paulsign:sign"),
|
||||||
("908446a2", ""),
|
("operation", "qiandao"),
|
||||||
("infloat", "yes"),
|
("infloat", "1"),
|
||||||
("handlekey", "dsu_paulsign"),
|
("sign_as", "1"),
|
||||||
("inajax", "1"),
|
("inajax", "1"),
|
||||||
("ajaxtarget", "fwin_content_dsu_paulsign"),
|
|
||||||
)
|
)
|
||||||
response = session.post(url="https://www.2nzz.com/plugin.php", verify=False, params=params)
|
data = {"formhash": formhash, "qdxq": "kx", "qdmode": "2", "todaysay": "", "fastreply": "0"}
|
||||||
|
response = session.post(url="https://www.2nzz.com/plugin.php", params=params, data=data, verify=False)
|
||||||
user_rep = session.get(url="https://www.2nzz.com/home.php")
|
user_rep = session.get(url="https://www.2nzz.com/home.php")
|
||||||
uid = re.findall(r"uid=(\d+)\"", user_rep.text)
|
uid = re.findall(r"uid=(\d+)\"", user_rep.text)
|
||||||
uid = uid[0] if uid else "未获取到 UID"
|
uid = uid[0] if uid else "未获取到 UID"
|
||||||
|
Loading…
Reference in New Issue
Block a user