Wechat chat robot

preparation: Install itchat: install command pip install itchat 1. Import the itchat module and send a message to the file transfer assistant import itchat itchat.auto_login(hotReload=True) itchat.send("Hello, file transfer assistant",toUserName='filehelper') Run the code, scan the QR code, that is, log in the wechat page version, and automat ...

Added by blear on Sat, 04 Jan 2020 02:55:05 +0200

Detailed description of Beautiful Soup Library

install pip install lxml pip install beautifulsoup4 Verify installation In [1]: from bs4 import BeautifulSoup In [2]: soup = BeautifulSoup('<p>Hello</p>', 'lxml') In [3]: print(soup.p.string) Hello About Beautiful Soup Parsers supported by Beautiful Soup Parser By comparison, lxml parser is a better choice Jus ...

Added by artied on Sun, 29 Dec 2019 17:52:44 +0200

[Python] Pygame module design game

Pygame is a cross platform Python module designed for video games, including images and sounds. Based on SDL, real-time video game development is allowed without being bound by low-level languages (such as machine language and assembly language). The history of Pygame Pygame is a written game library using SDL library. SDL, fu ...

Added by cetaces on Fri, 27 Dec 2019 17:12:14 +0200

linux network management command httpstat

Explain httpstat is a python script, which reflects curl statistical analysis in a wonderful and proper way. It is a single script, compatible with Python 3, and does not need to install additional software (dependency) on the user's system. In essence, it is an encapsulation of cURL tool, which means you can use several valid ...

Added by Twentyoneth on Wed, 25 Dec 2019 19:07:08 +0200

[Codeforces264E] [line tree] [DP]Roadside Trees

translate Trees can be planted at the position of 1 ∼ n1 ∼ n1 ∼ n, and can be planted at the beginning. There will be operations in the third moment: 1. PIP ﹣ IPI ﹣ a tree with a height of HIH ﹣ IHI ﹣ is planted in a position where no tree has been planted. 2. Cut down the first tree to ensure that no trees will ...

Added by callisto11 on Mon, 16 Dec 2019 23:06:53 +0200

Docker builds Robot Framework environment

Select Alpine Linux for basic image. For the introduction of alpine, see Alpine Docker installation bash . The contents of Dockerfile are as follows: FROM alpine:3.7 MAINTAINER Rethink shijianzhihu@foxmail.com RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main/" > /etc/apk/repositories # Add -- virtual will repor ...

Added by Drumminxx on Sat, 14 Dec 2019 17:14:37 +0200

Crawling expression bag

This is my first time to blog here. I'm still a little excited. I also just got in touch with Python and found that Python code is really powerful and can handle complex things easily. Recently, I wanted to write a crawler, but I didn't reach the level. There was an open class in CSDN college. Mr. Huang Yong's "Mastering Python multithrea ...

Added by mgason on Mon, 09 Dec 2019 07:12:41 +0200

python crawler -- selenium module. Get up and move yourself!

selenium basic operation from selenium import webdriver from time import sleep #Instantiate a browser object bro = webdriver.Chrome(executable_path=r'C:\pycahrm file\chromedriver.exe') url = 'https://www.jd.com/' #User initiated request bro.get(url) #Location tag search_input = bro.find_element_by_id('key') #Data interaction with the specifi ...

Added by damanic on Mon, 09 Dec 2019 00:02:57 +0200

Under Ubuntu 16.04.5, build OpenStack version p in DevStack mode

For the installation of Ubuntu 16.04.5, please refer to: http://blog.51cto.com/3241766/2323927 In this paper, the control node and calculation node of openstack are virtual machines newly built on esxi. The specific configuration is as follows: Control node configuration: Compute node configuration: The installation steps of the control no ...

Added by lin on Fri, 06 Dec 2019 12:18:12 +0200

Master Python system management debugging and analysis script 3-2019 new artifact pysnooper: peeping is more convenient than print

PySnooper - don't use print for debugging anymore Although breakpoints and other debugging methods are powerful, they are cumbersome to set. For this reason, print has become the favorite of many people. PySnooper allows you to do print, but you don't need to add many statements. You just need to add a decorator to get the running ...

Added by cueball2000uk on Sat, 23 Nov 2019 23:39:20 +0200