Spring is here, take you home with python!
Unconsciously, the annual Spring Festival ticket grabbing screen has been pulled open, want to grab the ticket home quickly?As a programmer, you must know about these techniques.
In order to make it faster and more convenient for people to grab train tickets, a variety of software for grabbing tickets should be created, most of which are mecha ...
Posted by sirmanson on Sat, 04 Jan 2020 07:40:03 -0800
selenium uses try except to deal with the exception of grabbing (case 3 of news grabbing)
Today's practice is to grab the news content locally, instead of printing the full text, you only need to print the first two or three paragraphs, so you can directly locate the p-tag of the first three paragraphs
content1=driver.find_element_by_xpath("//*[@id='newsmain-ej']/div/div[1]/div[1]/div[4]/div/p[1]").text
content2=dr ...
Posted by ashida123 on Thu, 26 Dec 2019 08:30:35 -0800
Comprehensive practice of Appium id location -- automatic login (postgraduate entrance examination help)
Integrated practice of id location -- automatic login
Test scenario
1. Start the App and enter the login interface
2. Enter the user name "self study network 2018" and password "zxw2018" on the login page and click login.
requirement analysis
1. The modules that detect and upgrade the pop-up window and the gu ...
Posted by bucko on Fri, 20 Dec 2019 08:34:50 -0800
Bulk save the cloud disk linked deom
Statement written earlier:
As a self-taught crawler, Xiaobai uses the crawler to climb the cloud disk link of 8000 books, and then wants to transfer all the resources written in the link to his own cloud disk, in case of resource failure one day. Originally, I wanted to find a software that could be saved in batches on the Internet, but I didn' ...
Posted by monkeyj on Tue, 03 Dec 2019 08:43:52 -0800
In the robot framework, use the selenium Library
At present, we use Python 2.7 (please do not despise, company environment, can't use Python 3) + robot framework to automate the function test. Today, we need to use selenium for web page operations, as follows
Installing the selenium 2 library Library
Using pip installation, the process is simple: pip install robot framew ...
Posted by flash99 on Tue, 03 Dec 2019 03:01:57 -0800
Fourth -- using selenium to capture and analyze stock data
This article is the fourth in a series of articles "from introduction to persuasion". It can also be used as the previous onePuppeter applicationFollow up.
Readers of this article: primary users of python, students who want to learn about crawlers or data grabbing. Want to know the users of selinum and beiotifulsoup
Background:
python ...
Posted by haku on Tue, 26 Nov 2019 20:18:47 -0800
python authenticator identification polar sliding authenticator identification
Catalog
1: Introduction to Polar Sliding Authentication Code
2. Ideas for Identifying Polar Sliding Verification Codes
3: Polar Verification Code Recognition
1: Introduction to Polar Sliding Authentication Code
_In recent years, there have been some new types of verification codes that do not want t ...
Posted by Jay87 on Sat, 23 Nov 2019 01:41:05 -0800
python-selenum3 day 6 - WebDriver common API s
1. Loop through all drop-down list values2. Radio drop-down list3. Selection and cancellation of multi selection list4. Operate the radio box, multi box, assert and select all5. Assert keywords in page source code6. screenshots7. Drag page elements
1. Loop through all drop-down list values
<!--Practicing html-->
//Education back ...
Posted by pillot1005 on Wed, 20 Nov 2019 12:24:42 -0800
[python crawler] use selenium to get Baidu search results and related keywords marked in red
I. environment construction
1. Install chrome driver
brew cask install chromedriver
2. Install selenium
pip3 install selenium
3. Install beautiful soup4
pip3 install beautifulsoup4
4. Test with the following code
from selenium import webdriver
driver = webdriver.Chrome() # The chrome browser is called here
driver.get ...
Posted by ari_aaron on Wed, 20 Nov 2019 10:14:02 -0800
selenium + cloud calling code + Baidu ocr crawling 360's phone number mark
. As shown in the red box below. It mainly uses Python's beutifulsoup and selenium, as well as the cloud coding platform (360 will be required to input the verification code after frequent inquiry of f ...
Posted by graphic3 on Sun, 10 Nov 2019 08:11:31 -0800