Python

Docker Package Flask image

The main advantage of docker is that it can be easily deployed to the cloud, because the container has the additional benefit of running anywhere without facing dependency conflicts

5 useful Python string methods

I will share with you 5 useful string methods in Python. First, we need to know that all python methods do not change the original value of the string, they return new values

Python uses websocket-client

WebSocket is a two-way communication protocol based on the TCP protocol that allows real-time data transfer between the browser and the server. In Python, a WebSocket client can be easily implemented using the websocket-client library

Python Selenium wait for page load to complete

Why set elements to wait? When your network is slow, it is slow to open the webpage, the webpage is not fully opened, the code is already executing, but the element you locate is not found, and python will report an error at this time

Python3 Peewee use

When using, first define the Model according to the requirements, and then create a table through create_tables(). If the database table has been created, you can directly create the Model through the python -m pwiz script tool

PYTHON CDP Network.Response

CDP is the abbreviation of Chrome DevTools Protocol. It provides the ability to interact with the Chrome browser. You can communicate with Chrome through CDP to obtain browser status information, perform operations, etc. Network.Response is a domain (Domain) in CDP, which provides information related to network request responses.