微信(WeChat) 是腾讯公司于2011年1月21日推出的一个为智能终端提供即时通讯服务的免费应用程序,由张小龙所带领的腾讯广州研发中心产品团队打造 。在互联网飞速发展的下、民众的需求下,微信已经更新到2.6.2.31版本,全民微信时代。村口的张大妈,家里的老父亲都知道怎么使用微信。
但是当我们与朋友,亲人,爱人聊天的时候,我估计每个人都经历过,那就是微信撤回功能中所提到的,对方撤回一条消息。
一条撤回的消息,就像一个秘密,让你迫切地想去一探究竟;或如一个诱饵,瞬间勾起你强烈的兴趣。你想知道,那是怎样的一句话?是对方不慎讲出的真话,还是一句发错了对象的话?
总之,这个撤回的消息,让人顿生×××。这个时候,就是技术人员出马的时候了。
Python查看微信撤回消息参考代码:
import itchatfrom itchat.content import *import osimport timeimport xml.dom.minidomtemp = 'C:/Users/Administrator/Desktop/CrawlerDemo' + '/' + '撤回的消息'if not os.path.exists(temp): os.mkdir(temp)itchat.auto_login(True)dict = {}@itchat.msg_register([TEXT, PICTURE, FRIENDS, CARD, MAP, SHARING, RECORDING, ATTACHMENT, VIDEO]) def resever_info(msg): global dict info = msg['Text'] msgId = msg['MsgId'] info_type = msg['Type'] name = msg['FileName'] fromUser = itchat.search_friends(userName=msg['FromUserName'])['NickName'] ticks = msg['CreateTime'] time_local = time.localtime(ticks) dt = time.strftime("%Y-%m-%d %H:%M:%S", time_local) dict[msgId] = {"info": info, "info_type": info_type, "name": name, "fromUser": fromUser, "dt": dt} @itchat.msg_register(NOTE) def note_info(msg): if '撤回了一条消息' in msg['Text']: content = msg['Content'] doc = xml.dom.minidom.parseString(content) result = doc.getElementsByTagName("msgid") msgId = result[0].childNodes[0].nodeValue msg_type = dict[msgId]['info_type'] if msg_type == 'Recording': recording_info = dict[msgId]['info'] info_name = dict[msgId]['name'] fromUser = dict[msgId]['fromUser'] dt = dict[msgId]['dt'] recording_info(temp + '/' + info_name) send_msg = '【发送人:】' + fromUser + '\n' + '发送时间:' + dt + '\n' + '撤回了一条语音' itchat.send(send_msg, 'filehelper') itchat.send_file(temp + '/' + info_name, 'filehelper') del dict[msgId] print("保存语音") elif msg_type == 'Text': text_info = dict[msgId]['info'] fromUser = dict[msgId]['fromUser'] dt = dict[msgId]['dt'] send_msg = '【发送人:】' + fromUser + '\n' + '发送时间:' + dt + '\n' + '撤回内容:' + text_info itchat.send(send_msg, 'filehelper') del dict[msgId] print("保存文本") elif msg_type == 'Picture': picture_info = dict[msgId]['info'] fromUser = dict[msgId]['fromUser'] dt = dict[msgId]['dt'] info_name = dict[msgId]['name'] picture_info(temp + '/' + info_name) send_msg = '【发送人:】' + fromUser + '\n' + '发送时间:' + dt + '\n' + '撤回了一张图片' itchat.send(send_msg, 'filehelper') itchat.send_file(temp + '/' + info_name, 'filehelper') del dict[msgId] print("保存图片")itchat.run()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
这篇文章到这里就结束了,不过在此真心建议,如果是男女朋友,就不要去用Python查看了,有些事情不知道比知道要好。亲身经历。
Facebook母公司Meta被欧盟罚款1700万欧元(约合1900万美元),原因是它未能阻止Facebook平台在2018年发生的一系列数据泄露事件,违反了欧盟的隐私规则。 Meta在欧盟的主要隐私监管机构爱尔兰数据保护委员会表示,他们发现Facebook“未能采取适当的技术和组织措施”。 20...
在周四的一份网络安全公告中,育碧(Ubisoft)证实该公司在上周遭遇了一起“网络安全事件”。尽管攻击尝试似乎未能造成破坏,但出于安全方面的考虑,育碧还是采取了全公司范围内的密码重置措施,以防发生其它意外。在此期间,育碧暂停了部分服务,但坚称没有玩家数据受到损害。截止发稿时,该公司旗下所有游戏和服...
在攻破 NVIDIA 之后,嚣张的黑客组织 Lapsus$ 近日在 Telegram 上发出投票帖,通过投票结果来决定接下来公开哪家公司的数据。在投票选项中包括运营商 Vodafone 的源代码、Impresa 的源代码和数据库、MercadoLibre 和 MercadoPago 的数据库。投票...
据TechCrunch报道,红十字国际委员会(ICRC)最近遭到网络攻击,超过51.5万名“高危人群”的数据被泄露,这很可能是国家支持的黑客所为。在周三发布的更新中,红十字国际委员会证实,最初的入侵可以追溯到2021年11月9日,即在1月18日攻击被披露之前的两个月,并补充说,其分析表明,入侵是对其...
GitHub今天透露,一名攻击者正在使用偷来的OAuth用户令牌(原本发放给Heroku和Travis-CI),从私人仓库下载数据。自2022年4月12日首次发现这一活动以来,威胁者已经从几十个使用Heroku和Travis-CI维护的OAuth应用程序(包括npm)的受害组织中访问并窃取数据。...
自 Windows 11 系统 2021 年 6 月发布以来,不断有各种活动欺骗用户下载恶意的 Windows 11 安装程序。虽然这种情况在过去一段时间里有所遏制,但现在又卷土重来,而且破坏力明显升级。 网络安全公司 CloudSEK 近日发现了一个新型恶意软件活动,看起来非常像是微软的官方网站...