Seleniu m: common operations of elements
Selenium element operation
1. In the process of using Selenium, it is not enough to locate the element and operate the browser WebDriver object. More importantly, we need to operate an element
(1) for example: input data into the input box, click the button, etc
2. After locating an element using the element location method, find_element_by_* ...
Posted by eddierosenthal on Tue, 08 Mar 2022 15:04:14 +0100
Extension of xpath location method for web automation
1, Introduction to xpath
xpath is an XML path language, which can be used to determine the location of elements in XML documents and find elements through element paths. HTML is an implementation of XML, so xpath is a very powerful positioning method.
1. Formula: / / tag name [@ attribute = 'value of attribute']
//*[@ id="kw"] -- r ...
Posted by ctimmer on Tue, 08 Mar 2022 14:04:01 +0100
Help little sister crack the encrypted compressed package -- brute force cracking dictionary generation
introduction
Some time ago, a young lady downloaded an encrypted compressed package resource, which is the latest movie in release, so she found me and asked me to help her crack it.
The blogger thought it was not easy, so he went to the Internet to find a compressed package password cracking software, but when using it, he found that he c ...
Posted by visualed on Tue, 08 Mar 2022 13:58:15 +0100
Basic explanation of Python crawler: data persistence -- Introduction to json and CSV modules
json
Purpose:
Encodes Python objects into JSON strings and decodes JSON strings into Python objects.
The JSON module provides an API to convert Python objects in memory into JSON sequences. JSON has the advantage of being implemented in multiple languages, especially JavaScript. It is widely used in the communication between Web server and c ...
Posted by bam2550 on Tue, 08 Mar 2022 13:50:15 +0100
17 summary and operation (object-oriented continuation and json)
1, Summary
attribute
Class attribute (field): variables directly defined in a class are class attributes, which are defined by 'class.' Mode of use Object attribute: take 'self Attribute name = value 'is defined in__ init__ Method Default values for object properties: Self: point to whoever calls it, so you can directly use self as an ...
Posted by scristaldi on Tue, 08 Mar 2022 13:10:39 +0100
Installing Spark and Python exercises
1, Install Spark
Introduction to Spark 2.4.0: installation and use of Spark
Blog address: http://dblab.xmu.edu.cn/blog/1307-2/
1.1 basic environment
1.1.1 before installing Spark:
Linux system
Java environment (Java8 or JDK1.8 or above)
Hadoop environment
Hadoop installation tutorial address: http://dblab.xmu.edu.cn/blog/install-hadoop/
Follow ...
Posted by imperialized on Tue, 08 Mar 2022 12:13:09 +0100
Python image batch automatic matting to remove background
Batch automatic matting of pictures to remove backgroundToday, I found a good thing called pickwant.com, which is an online website that automatically extracts pictures to remove the background. As long as you upload the picture, you can automatically remove the background and pull out the target object.Whether animals, cars or various products ...
Posted by Teck on Tue, 08 Mar 2022 11:07:10 +0100
vn.py quick start 6 - develop the first quantitative strategy
The quick start series has reached Chapter 6, and we are finally going to touch the content of programming practice. The content in this tutorial assumes that you have a certain basic grasp of Python language development:
Understand Python data results
Understand the concept of object-oriented programming
Can use control statements t ...
Posted by hairulazami on Tue, 08 Mar 2022 11:01:22 +0100
[python] understand the unit test framework unittest and pytest
unittest
Official reference address: https://docs.python.org/zh-cn/3/library/unittest.html?highlight=assertequal#module-unittest
1. Installation and import
# unittest yes python Built in module for testing code,It can be imported directly without installation
import unittest
2. Use
matters needing attention: 1,The test file must b ...
Posted by bqheath on Tue, 08 Mar 2022 08:24:39 +0100
Integrated learning task7
Ideas of voting method
voting is a combination strategy for classification problems in integrated learning. The basic idea is to choose the one with the most output among all machine learning algorithms.
There are two types of machine learning algorithm output for classification: one is to directly output class labels, and the other is to out ...
Posted by ckehrer on Tue, 08 Mar 2022 00:55:03 +0100