Commit 1f941649 authored by TesterYao's avatar TesterYao

1

parent 0da35fe0
...@@ -6,17 +6,20 @@ import requests ...@@ -6,17 +6,20 @@ import requests
import time import time
import urllib import urllib
def send_messages(content): def send_messages(content,mobile):
webhook = 'https://oapi.dingtalk.com/robot/send?access_token=' webhook = 'https://oapi.dingtalk.com/robot/send?access_token='
headers = {"Content-Type": "application/json; charset=utf-8"} headers = {"Content-Type": "application/json; charset=utf-8"}
token = '76332b31c5604e23d386c771202f4581a3bed8b4e73df7968f34e19b1f284738' token = '76332b31c5604e23d386c771202f4581a3bed8b4e73df7968f34e19b1f284738'
secret = 'SECb4efc8c7305357f3b0beb1b53650061a7f165ae5e247a03533e02156f3fbad5a' secret = 'SECb4efc8c7305357f3b0beb1b53650061a7f165ae5e247a03533e02156f3fbad5a'
atMobiles = ['17816616945','13875018906','18612924181']
if mobile:
atMobiles.append(mobile)
data_info = { data_info = {
"msgtype": "text", "msgtype": "text",
"text": { "text": {
"content": content "content": content
}, },
"at": {'atMobiles': ['15010432637','13875018906','18518552824','18612924181']} "at": {'atMobiles': atMobiles}
} }
timestamp = str(round(time.time() * 1000)) timestamp = str(round(time.time() * 1000))
# 密钥进行编码 # 密钥进行编码
......
...@@ -66,7 +66,12 @@ if __name__ == '__main__': ...@@ -66,7 +66,12 @@ if __name__ == '__main__':
if check_domain(v): if check_domain(v):
ding_list.append(v) ding_list.append(v)
if ding_list.count(v)<4: if ding_list.count(v)<4:
send_messages(k+'被封,被封链接为:' + v) if k.find('&')>-1:
title = k.split('&')[0]
phone = k.split('&')[1]
send_messages(title + '被封,被封链接为:' + v,phone)
else:
send_messages(k+'被封,被封链接为:' + v)
if k.startswith('全民'): if k.startswith('全民'):
qm.post_block_list(v) qm.post_block_list(v)
sleep(2) sleep(2)
...@@ -81,3 +86,6 @@ if __name__ == '__main__': ...@@ -81,3 +86,6 @@ if __name__ == '__main__':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment