筛选

Price Type:

Python

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.

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 direct assignment, shallow copy and deep copy analysis

Direct assignment: In fact, it is a reference to the object. Shallow copy (copy): copies the parent object and does not copy the internal child objects of the object. Deep copy (deepcopy): The deepcopy method of the copy module completely copies the parent object and its child objects.

Python Loguru logging solution

For the logging module, even if it is simple to use, you need to define the format yourself. Here is a more elegant, efficient and concise third-party module: loguru

How to Continue Automation Programs After Closing Remote Desktop

Normally, after the remote connection is closed, windows will enter the standby state and cannot perform interface rendering, so some automated applications will not be able to run. In order to still be able to run the application after the remote connection is closed, you need to use the following method to close the remote desktop

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