微信8.0 微信轰炸
pip install itchat pip install itchat-uos #跳过网页登录
代码转载:可以python带参数运行,或者修改默认default运行,参考原作者
import itchat import argparse def get_arguments(): parser = argparse.ArgumentParser(description='文献表情包发送') parser.add_argument('--name', type=str, default="name", help='要发送的人的微信备注') parser.add_argument('--group', type=str, default="person", help='要发送到个人还是群组,默认个人') parser.add_argument('--number', type=int, default=100, help='发送次数') parser.add_argument('--expression', type=str, default='[炸弹]', help='要发送的表情/文本') return parser.parse_args() if __name__ == '__main__': args = get_arguments() name = args.name number = args.number expression = args.expression group = args.group itchat.auto_login(hotReload=True) if group == 'person': to_name = itchat.search_friends(name=name) if to_name: print(to_name) for i in range(number): itchat.send(expression, toUserName=to_name[0]['UserName']) else: print("查无此人,请重试") elif group == 'group': to_room = itchat.search_chatrooms(name=name) print(to_room) if to_room: for i in range(number): itchat.send(expression, toUserName=to_room[0]['UserName']) else: print("查无此群,请重试") else: print("请输入group为:person代表个人,group代表群组,其他字符不识别")