Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use python to make a Wechat automatic reply robot to coax his girlfriend

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to use python to make a Wechat automatic reply robot to coax your girlfriend. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Without saying much, follow the editor to have a look.

Although the title is like this, but for the well-being of two people, try not to be so perfunctory with your girlfriend, after all, there are still many single dogs in the world.

This is an open source project recently uploaded by github. 3000+star has been available in just a few days. It is difficult for programmers to find girlfriends, and so many people pay attention to this project, so fork and cherish it.

Let's get to the point:

Prerequisite preparation:

1. Python3.5 or above, python IDE.

2. Register Turing Robot api, address: http://www.turingapi.com

3. Clone the github code locally

Github address: https://github.com/sfyc23/EverydayWechat

1. Environment building

Here IDE takes pycharm as an example. After cloning the project locally, import the project in pycharm:

After the project is imported, you need to configure the dependent libraries and install them through pip:

Pip install requestspip install beautifulsoup4pip install itchatpip install apschedulerpip install pyyamlpip install lxmlpip install simplejson

Once the environment is configured, it's time to modify the configuration file.

2. Modify the configuration

1. Open the _ config.yaml file and enable automatic reply:

2. Configure Turing robot api:

Among them, apiKey is the application for the apiKey,userId of the Turing robot is the randomly designated user ID.

3. Fill in the list of friends who need to reply automatically. As follows:

With regard to automatic responses, information that can be made public at present:

Only text messages can be automatically replied.

Automatic reply to group messages is not realistic (to be completed)

If the message is sent too often, Wechat will restrict login to the web side. Don't worry, the name will not be sealed.

It's not an automatic reply to everyone, just to the people in auto_reply_names.

When there are no Turing robots apikey and UserId, or when the number exceeds, the spare Qingyunke intelligent chat robot will be used to get the data.

3. Log in to the web version of Wechat

Under the premise that the above work has been done, open the run.py file and run it.

The first run will jump out of the QR code and scan the code to log in. If the output log is printed as "login successful", it means that the operation is successful. After running for a period of time, Wechat will remain logged in and there is no need to scan the code.

If you need to switch users, in the _ config.yaml file, change the property of is_forced_switched to True.

The following is an illustration of the effect:

The above is how to use python to make a Wechat automatic reply robot to coax his girlfriend. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report