Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Python looks at WeChat's withdrawal message


Jun 01, 2021 Article blog



This article was reproduced to Know ID: Charles (Bai Lu) knows his personal column

Download the W3Cschool Mobile App, 0 Foundation Anytime, Anywhere Learning Programming >> Poke this to learn

Lead

Free at home for a few days, want to drum up some simple and fun script to share with everyone, so there is this article

This article will use Python to record messages that have been withdrawn by others in the WeChat Friends/WeChat group and send them to your phone via the file transfer assistant.

Let's start happily


Related documents

Baidu web download link: https://pan.baidu.com/s/1UdTXIXy4iGes24zv9YBIZg

Password: j43u


Develop tools

Python version: 3.6.4

Related modules:

itchat module;

and some Python's own modules.


Environment construction

Install Python and add it to the environment variable, and pip installs the relevant modules that are required.


Introduction to the principle

The idea is relatively simple, the use of itchat module login page version of WeChat, their WeChat received all the messages are cached down, when detected that there is a message withdrawal, the cached version of the recall message sent to their mobile phone through the file transfer assistant.

Therefore, you must ensure that the script runs 24 hours a day before you can always monitor if someone else has withdrawn the message.

The implementation process is detailed in the source code in the relevant file.


Use the demo

Windows system:

Mobile:

 Python looks at WeChat's withdrawal message1
 Python looks at WeChat's withdrawal message2

Server-side:

Linux system:

Mobile:

 Python looks at WeChat's withdrawal message3
 Python looks at WeChat's withdrawal message4

Server-side:


more

The code is correct as of 2018-06-25.

T_T the script is perfectly legal and harmless, just cache all the messages you receive to prevent others from recalling them and not seeing them.

But no one should be bored enough to put the script on the server to monitor whether their friends have withdrawn the message

So pure skill (none) skill (chat) cross (take) flow (music)?