首页 > 代码库 > url监控
url监控
#!/usr/bin/env python #coding:utf-8 import MySQLdb,requests import time from datetime import datetime global sendtime global flag global monitor_time number = 0 to_email = [] params = {} timedic = {} a=[] b=[] c=[] def sendmail(mail_list, message): url = "http://api.sendcloud.net/apiv2/mail/send" for number in range(len(mail_list)): params[‘apiUser‘] = "" params[‘apiKey‘] = "" params[‘from‘] = "" params[‘fromName‘] = "bill" params[‘subject‘] = "warning" params[‘html‘] = "your html is abnormal: " + message params[‘to‘] = mail_list[number] r = requests.post(url, files={}, data=http://www.mamicode.com/params)>
url监控
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。