当前位置:网站首页>I used Python to find out all the people who deleted my wechat and deleted them automatically

I used Python to find out all the people who deleted my wechat and deleted them automatically

2020-11-08 16:17:48 Irving the procedural ape

1. summary

I don't know if you have ever sent a message to someone in your address book on wechat , It turned out to be this scene :

I always think that my heart quality is excellent , But in this case ...

After I was half an hour late ( Half a minute ) after , Slowly took out the mobile phone , Open the WeChat , Find... In the address book ABC, Press the delete button silently , At the moment, my heart is still ...

Okay , Let's get back to business , To avoid this happening again , I decided to find out all the people who deleted themselves from the wechat address book and delete them , I have learned on the Internet that the better way to check whether my wechat has been deleted is to transfer money , By transferring money, we can achieve traceless detection .

Let's take a look at the effect of transferring money to others before and after wechat is deleted through two pictures :

Now we know how to detect it , Just when I was ready to test one by one , Unconsciously slide the wechat address list ,100、200 ... 500 ...

I went to ! When did you add so many people , While sliding the list, I glanced at the wechat name :A Selling insurance 、B Apply for credit card 、C Swimming fitness 、D Selling health products ... Now I know the secret of so many people in the wechat address book , But there's a problem , With so many people, I'm not tired to transfer money manually one by one ...

If manual execution doesn't work , So can it be automated by programming ? Thinking about it, I was lost in thought ...

Suddenly there was a flash in my head ( It's not a cramp ), My mind is getting clearer , I didn't write an article the other day Python + Appium How to operate wechat automatically ? It should be possible to use this , The basic idea of programming is as follows :

  • Get the name of everyone in the wechat address book list ( remarks ) And record , There will be no repetition of this , Because even if you add friends before, there are repeated , I will also change it in the remarks

  • Traverse to get the address list , Transfer to each person separately , If it is detected that it is the person who deleted himself, delete it , If you detect someone who is not deleting yourself, continue to detect the next person , It goes back and forth in turn

2. Environmental Science

Because it was tested on the simulator before Appium There may be some problems with the simulated wechat transfer , Therefore, this paper uses the real machine to realize .

Let's briefly introduce the real machine environment , Let's take a look at the corresponding steps .

  • Take my millet from the corner of the table 5s mobile phone (MIUI10.2、Android8.0.0), Wipe the dust and connect it to your computer with a data cable

  • The phone is powered on after charging for a while , Open wechat and log in to your own wechat

  • In the mobile phone, execute in turn ( Click on ): Set up -> My device -> All parameters ->MIUI edition ( Click the , Open developer mode )-> Back to the settings list -> More Settings -> Developer options -> Turn on the developer option and turn it on separately :USB debugging 、USB install 、USB debugging ( Security Settings ) Options , As shown in the figure :

  • At this time, the phone will pop up USB The purpose of the pop-up frame , We choose to transfer files (MTP) that will do , As shown in the figure :

  • On computer CMD In the implementation of adb devices command , See if you can find your mobile phone , For example, the following figure shows the result of success

  • In the above steps, you may not find the mobile phone , Usually this is a driving problem , Here's a simple way to deal with it : Download a driver wizard , After the installation starts, click driver management , After that, install the corresponding driver to solve the problem , As shown in the figure :

版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢