在程序中添加监控-给自己的微信发送特定消息

# -*- coding: utf-8 -*-
# @Author : Felix Wang
# @time   : 2018/7/19 11:15

def toMyWechat(content):
    import itchat
    itchat.auto_login(hotReload=True)
    itchat.send(content, toUserName='filehelper')


toMyWechat('程序运行出错!')
toMyWechat('爬虫运行完毕!')
原文地址:https://www.cnblogs.com/felixwang2/p/9334942.html