How to call wxpy Library in Python
Python how to call the wxpy library, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Def send_news (message):
If bot = = None:
Login_wechat ()
Try:
Print (message)
My_friend = bot.friends () .search (upright A') [0] # A means Wechat nickname
# my_friend.send (get_news () [0])
# my_friend.send (get_news () [1] [5:])
My_friend.send (u "test it!")
For i in range (len (message)):
Print (I)
Print ('-')
My_friend.send (message [I])
Time.sleep (70)
T = Timer (60, send_news) # 60 is seconds
T.start ()
Except:
Print (u "failed!")
Libraries that need to be imported:
From _ _ future__ import unicode_literals
From threading import Timer
From wxpy import *
Import requests
Take out and send the recruitment information saved in the previous step to your friends, connect to the database, get the data, and send the data.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.