python3微信个人号群发好友

#!/usr/local/bin/python3
#coding=utf-8

import time
import itchat

itchat.auto_login(hotReload=True)

msg = “情人节快乐”   #msg信息
friends = itchat.get_friends() #拉取好友列表

for i in range(1, len(friends)): #第1位是自己,从第2位开始
itchat.send(msg, toUserName=friends[i][‘UserName’])
time.sleep(5) #等待5秒

关注”珊瑚贝” 公众号回复 标题名称  获取百度云下载地址

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_744.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?