教你用Python实现微信群发与短信轰炸,被拉黑别找我!
今天支付宝又开始了集五福活动,为了更多的人和我交换福卡······················
不幸的是,忙活了大半天,我还是缺敬业福。。。
<pre style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-family: Consolas, Menlo, Courier, monospace; font-size: 16px; white-space: pre-wrap; position: relative; line-height: 1.5; color: rgb(153, 153, 153); margin: 1em 0px; padding: 12px 10px; background: rgb(244, 245, 246); border: 1px solid rgb(232, 232, 232); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"> 1import itchat
2import time
3#print('扫一下弹出来的二维码')
4itchat.auto_login(hotReload=True)
5names = ['chengli','fang','genggeng','hanling','juan','ll','short','md','miao','qiaohong','shuai',
6 'sunhao','wangdan','whp','xiangxiang','xinxin']
7name = ['short','short']
8for i in range(16):
9 boom_remark_name = names[i]
10 #boom_remark_name = '亚述'
11 #message = input('输入你要轰炸的内容:')
12 message = '支付宝五福了解一下'
13 boom_obj = itchat.search_friends(remarkName=boom_remark_name)[0]['UserName']
14 itchat.send_msg(msg=message, toUserName=boom_obj)
15 #print(str(boom_remark_name)+' 已发送!')
</pre>
另一个有趣的使用就是消息轰炸了,烦到别人删好友。
<pre style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; font-family: Consolas, Menlo, Courier, monospace; font-size: 16px; white-space: pre-wrap; position: relative; line-height: 1.5; color: rgb(153, 153, 153); margin: 1em 0px; padding: 12px 10px; background: rgb(244, 245, 246); border: 1px solid rgb(232, 232, 232); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"> 1import itchat
2import time
3#print('扫一下弹出来的二维码')
4itchat.auto_login(hotReload=True)
5names = 'short'
6
7
8while(True):
9 boom_remark_name = names
10 message = '滚去学习!!!'
11 boom_obj = itchat.search_friends(remarkName=boom_remark_name)[0]['UserName']
12 itchat.send_msg(msg=message, toUserName=boom_obj)
13 print(str(boom_remark_name)+' 已发送!')
14 time.sleep(1)
</pre>
猥琐发育,别浪!
源码视频书籍练习题等资料进群696541369 即可免费获取
更多python记得关注我的公众号 从0到1Python之路