微信自动发送消息

微信自动发送消息


直接上代码,自行调整~

#!/usr/bin/python
#-*- coding:utf-8 -*-
#@Time   : 2019/3/18 16:14
#@Author : lemon
#@File   : wechat.py
import itchat
itchat.auto_login(hotReload=True)
friendslist = itchat.get_friends(update=True)[1:]
print(friendslist)
while True:
    itchat.send('silly-dog', toUserName='@81a890c87d8018844174ae1a10d7482cfc14c7d1486e')
    ```

你可能感兴趣的:(python)