itchat 批量给微信好友发送祝福消息
2017-08-31 15:00
891 查看
明天就是元宵节(2018.3.2),微信批量发送祝福消息。
执行效果如下:
#coding=UTF-8 #基于python3.6 import itchat,time import sys from itchat.content import * itchat.auto_login() wish_list = ['汤圆说:我不开口就是为了让你永远在我心中。水说:我时时刻刻流淌不息就是为了永远把你拥抱。' '锅说:都快熟了还贫呢。值此元宵佳节之际,xxx祝您工作顺利,万事如意,阖家欢乐!'] SINCERE_WISH = wish_list[0] friendList = itchat.get_friends(update=True)[1:] for g in range(0,len(friendList)): itchat.send(SINCERE_WISH,friendList[g]['UserName']) print((friendList[g]['RemarkName'] or friendList[g]['NickName']),'已发送') sys.stdout.write(str(g+1)+"/"+str(len(friendList))+"\r") sys.stdout.flush() time.sleep(2) print('done')
执行效果如下:
相关文章推荐
- python使用itchat发送微信消息提醒
- 在python中使用itchat发送微信消息
- 在python中使用itchat发送微信消息
- android UiAutomator如何向所有微信好友发送一条“你好,***”开头的祝福消息
- 使用Python微信库itchat获得好友和群组已撤回的消息
- itchat批量生成微信祝福卡片并发送好友
- Python itchat个人微信账号接口定时发送群消息
- 通过itchat进行给好友发送消息
- 安装python itchat 模块 用python发微信消息
- Python实现微信好友签名词云的构建(itchat、jieba、wordcloud)
- Python实践-itchat获取微信好友总人数以及男女比例
- python-itchat 统计微信群、好友数量,及原始消息数据
- 新技能,微信批量发送中秋节信息给好友~~
- itchat和wordcloud对微信好友的签名进行画像
- Python微信好友信息意义及取值分析(基于itchat)
- itchat 微信接口不能直接发消息给指定用户
- 微信自动回复消息,批量发送消息,收到消息处理
- 用python itchat包 爬取微信好友头像形成矩形头像集
- itchat+pillow实现微信好友头像爬取和拼接
- python-itchat微信消息群发、自动回复