Skip to content

Commit

Permalink
Update xingkong.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wd210010 authored Jan 3, 2024
1 parent c7c2630 commit 12af795
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xingkong.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

import requests, json
import os
import logging

# 青龙变量 xk_username xk_password
xk_username= os.getenv("xk_username").split('&')
xk_password = os.getenv("xk_password").split('&')


logging.captureWarnings(True)
for i in range(len(xk_username)):
print(f'开始第{i + 1}个帐号签到')
url = 'https://www.xkdaili.com/tools/submit_ajax.ashx?action=user_login&site_id=1'
Expand Down Expand Up @@ -59,6 +61,6 @@
data_sign = {
'type': 'login'
}
html_sign = requests.post(url=url_sign, headers=headers_sign, data=data_sign)
html_sign = requests.post(url=url_sign, headers=headers_sign, data=data_sign, verify=False)
result = json.loads(html_sign.text)['msg']
print(result)

0 comments on commit 12af795

Please sign in to comment.