当前位置:网站首页>我用 Python 找出了删除我微信的所有人并将他们自动化删除了
我用 Python 找出了删除我微信的所有人并将他们自动化删除了
2020-11-08 16:17:00 【程序猿欧文】
1. 概述
不知你是否遇到过在微信上给通讯录中的某个人发消息,结果出现了这一幕:

平时一直认为自己的心里素质过硬,不过遇到这种情况 ...

在我缓了半个钟头(半分钟)之后,缓缓拿出了手机,打开微信,找到通讯录中的 ABC,默默地按下了删除按钮,此刻的我心如止水 ...

好了,我们回到正题,为了避免再次出现上述情况,我决定把微信通讯录中删除了自己的人全部找出来并且删除,之前我已经在网上了解到检查自己的微信是否被删比较好的方式就是转账,通过转账我们可以实现无痕检测。

下面我们通过两张图片直观的看一下微信被删前后给别人转账的效果:


现在已经知道了检测方式,正在我准备挨个检测时,无意识的滑动了微信通讯录列表,100、200 ... 500 ...

我去!什么时候加了这么多人,滑动列表的同时我顺势扫了一眼微信名字:A卖保险、B办理信用卡、C游泳健身、D卖保健品 ... 此刻我知道了微信通讯录中有这么多人的玄机,但是有个问题,这么多人我挨个手动执行转账还不累屎了 ...
如果手动执行的方式行不通,那么可以通过编程的方式自动化执行吗?想到这里我陷入了沉思 ...

突然我脑中闪了一下(不是抽筋哈),思绪渐明,前几天我不是写了一篇Python + Appium 自动化操作微信入门吗?用这个应该就可以实现,编程实现的基本思路如下:
获取微信通讯录列表中每个人的名字(备注)并记录,这个是不会有重复的,因为即使在之前加好友时有重复的,自己也会在备注时给改了
遍历获取到的通讯录列表,分别对每一个人执行转账操作,如果检测到是删除自己的人就对其执行删除操作,如果检测到不是删除自己的人则继续检测下一个人,依次往复循环
2. 环境
因之前在模拟器上测试 Appium 模拟微信转账可能有点问题,因此本文使用真机实现。
先简单介绍一下真机环境,下面一起来看一下相应步骤。
从桌角下取出我的小米5s手机(MIUI10.2、Android8.0.0),擦擦灰尘后用数据线将其连到自己的电脑上
手机充了一会电之后开机,打开微信登录自己的微信号
在手机中依次执行(点击):设置->我的设备->全部参数->MIUI版本(多次点击,开启开发者模式)->返回设置列表->更多设置->开发者选项->开启开发者选项并分别开启:USB调试、USB安装、USB调试(安全设置)选项,如图所示:

- 此时手机上会弹出USB的用途弹框,我们选择传输文件(MTP)即可,如图所示:

- 在电脑 CMD 中执行
adb devices命令,看是否能找到自己的手机,比如下图所示就是成功的结果了

- 在上面步骤中你可能出现找不到手机的情况,通常这种情况是驱动问题,这里介绍一种简单的处理方式:下载一个驱动精灵,安装启动之后点击驱动管理,之后安装相应驱动即可解决,如图所示:

版权声明
本文为[程序猿欧文]所创,转载请带上原文链接,感谢
https://my.oschina.net/mikeowen/blog/4708261
边栏推荐
- Apache Kylin远程代码执行漏洞复现(CVE-2020-1956)
- 10 common software architecture patterns
- C + + things: from rice cookers to rockets, C + + is everywhere
- Flink from introduction to Zhenxiang (10. Sink data output elasticsearch)
- Workers, workers soul, draw lifelong members, become a person!
- Solution to the problem of offline connection between ADB and mobile phone
- [open source]. Net uses ORM to access Huawei gaussdb database
- . net large data concurrency solution
- GopherChina 2020大会
- We made a medical version of the MNIST dataset, and found that the common automl algorithm is not so easy to use
猜你喜欢

刚刚好,才是最理想的状态

谷歌开源能翻译101种语言的AI模型,只比Facebook多一种

Alibaba cloud accelerates its growth and further consolidates its leading edge

构建者模式(Builder pattern)

markdown使用

小青台正式踏上不归路的第3天

腾讯:阿里的大中台虽好,但也不是万能的!

How to solve the difference between NAT IP and port IP

The network adapter could not establish the connection

The birth of a new integrated memory and computing chip is conducive to the application of artificial intelligence~
随机推荐
Travel notes of Suzhou
On the software of express delivery cabinet and deposit cabinet under Windows
构建者模式(Builder pattern)
uni-app实战仿微信app开发
喝汽水,1瓶汽水1元,2个空瓶可以换一瓶汽水,给20元,可以多少汽水
阿里云加速增长,进一步巩固领先优势
Blockchain weekly: the development of digital currency is written into the 14th five year plan; Biden invited senior adviser of MIT digital currency program to join the presidential transition team; V
Huawei has an absolute advantage in the 5g mobile phone market, and the market share of Xiaomi is divided by the market survey organization
这几个C++的坑,一旦踩中了,加班是肯定避免不了了!
Improvement of maintenance mode of laravel8 update
Stm32uberide download and install - GPIO basic configuration operation - debug (based on CMSIS DAP debug)
Drink soda, a bottle of soda water 1 yuan, two empty bottles can change a bottle of soda, give 20 yuan, how much soda can you
Millet and oppo continue to soar in the European market, and Xiaomi is even closer to apple
Golang ICMP协议探测存活主机
重返全球第三,小米做对了什么?
学习记录并且简单分析
苏州游记
Golang system ping program to detect the surviving host (any permission)
I used Python to find out all the people who deleted my wechat and deleted them automatically
【Python 1-6】Python教程之——数字