[Python Crawler] 8. Selenium and PhantomJS for Dynamic HTML Processing
Summary of Expiration:
[Python Crawler] 1. Requests and Responses of HTTP and HTTPS of Crawler Principles
[Python Crawler] 2. Definition, classification, flow and encoding format of crawler principles
[Python Crawler] 3. Requests HTTP Library for Data Grabbing
[Python Crawler] 4. Fiddler, ...
Posted by digitalecartoons on Sat, 15 Feb 2020 18:03:25 -0800
Python 3 reptile battle data of pneumonia
Reptile thinking
The first step is to get the data we need
Tencent, Netease, clove doctor and other platforms have real-time data of the epidemic. After crawling the data of each platform, it is found that the data returned by Dr. lilac is static. If you want to crawl in Tencent and Netease, you nee ...
Posted by wmac on Thu, 13 Feb 2020 01:39:22 -0800
Automatic test model of learning notes
Modular instance
The code is shown as follows in mailbox 126:
from selenium import webdriver
driver = webdriver.Firefox()
driver.implicitly_wait(10)
driver.get("http://www.126.com")
#Land
driver.find_element_by_link_text("Password login").click()
#Find the frame layer where the user name and password ...
Posted by Abz on Sat, 08 Feb 2020 02:30:52 -0800
Record the decompilation process of Python 3.7 once
Record the decompilation process of Python 3.7 once
1. Convert exe file to pyc file
2. Repair pyc file
3. How to get magic number
4. Add magic number
5. Decompile pyc files
Found an exe compiled by Python 3.7, but did not find the source code. Record the decompilation process
1. Convert exe file ...
Posted by pulsedriver on Sun, 02 Feb 2020 06:48:07 -0800
Python 3 realizes the automatic transfer of Baidu cloud disk resources
Python 3 Baidu cloud disk resources auto transfer
Python 3 realizes the automatic transfer of Baidu cloud disk resources, solves the automatic transfer of shared links with passwords, and the automatic transfer of resources without passwords. At the same time, it realizes the transfer of post request ...
Posted by AngelGSD on Wed, 22 Jan 2020 01:31:28 -0800
Java uses selenium to crawl the source code of web page and send it by email
1. Project construction: idea + gradle + springboot
build.gradle: introduce selenium related dependency
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
group = 'com.boom.basement'
def version = '1.0.0.RELEASE'
de ...
Posted by John_wilson on Thu, 16 Jan 2020 10:09:47 -0800
Selenium: screenshot showing waiting
1, Show wait (conditional wait)
common problem:
The location is clearly right. Why can't the running code find the location.
The location is clearly right. If the location is found, why is the text information empty?
Analysis reason:
frame not processed
The page rendering speed is slower than the code of automatic test, and the page is locat ...
Posted by arsitek on Wed, 15 Jan 2020 22:44:46 -0800
Download of python 3.x crawler Jinjiang novel (use cookie to get VIP chapter)
Preface
As a girl, I like to read novels in Jinjiang. However, the website of Jinjiang is very magical. The article says that we can only write a crawler program to save novels
At first, I chose the format of txt to save the novel. Later, I decided to save the novel in the format of epub. Because I ...
Posted by maxic0 on Mon, 13 Jan 2020 07:48:52 -0800
Selenium Common Operations
Catalog
install
Download Driver
Element Selection
Enter, clear, Click
Close windows, browsers
Window Switch
Frame Switching
Page Pop-up Window
Waiting to load
Action Chain
Keyboard events
Execute js (sliding scrollbar)
screenshot
Get Element Properties
Get page source code, refresh page
Set window size
Set up proxy, UA
Cookie operation
Skip Se ...
Posted by johanafm on Wed, 08 Jan 2020 19:47:31 -0800
Groovy overload operator
Heavy load for a while, heavy load for a long time.
Recently, I read a book "Groovy in action" to review some of Groovy's syntax features. I am infatuated with the function of this overloaded operator, and I insist on the cool and don't want. Share a Demo.
Because Groovy syntax is slightly different from Java syntax, but it is basic ...
Posted by reddymade on Wed, 08 Jan 2020 06:51:45 -0800