1. View Linux version
[root@penguin selenium]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
2. Install selenium
2.1 install selenium through pip, and install PIP first:
[root@penguin selenium]#yum -y install epel-release
[root@penguin selenium]#yum -y install python-pip
2.2 if prompted for pip update, exe ...
Posted on Tue, 19 Nov 2019 12:20:21 -0500 by Tremour
The following HTML file is the form.html to be used later. The page is roughly as follows:
user:<input type="text" n ...
Posted on Mon, 18 Nov 2019 09:40:49 -0500 by Zack
One core of selenium is WebDriver, which starts the target browser, binds to the specified port, and then communicates directly with it.
pip install selenium
The following errors may be encountered when using:
'geckodriver' executable needs to be in PATH
'chromedriver' executable needs to be in PATH
The instr ...
Posted on Sun, 17 Nov 2019 19:51:47 -0500 by zdzislaw
Source code of Request:
# Part of code
def __init__(self, url, callback=None, method='GET', headers=None, body=None,
cookies=None, meta=None, encoding='utf-8', priority=0,
self._encoding = encoding # this one ...
Posted on Wed, 13 Nov 2019 10:34:25 -0500 by stupid girl!
Problem: when iframe is used to embed viewer.html of PDF.js in the page, the full screen function of some browsers is wrong;
Details of the problem: the browsers with the problem mainly include: edge (with win10), Firefox (buttons are blocked);
Solution:1. If you do not use iframe, the new tab will be opened; - give up: the page experience is n ...
Posted on Mon, 11 Nov 2019 16:05:37 -0500 by yapyapayap
The thing is like this: because in writing a small program of Douban lottery, I need to grab all the user information forwarded by Douban broadcast, and then extract the lucky audience from these users.
Typical IO intensive operation.
First, the crawler needs to enter the broadcast to find out how many forwarding pages there are in total, which ...
Posted on Mon, 11 Nov 2019 11:57:00 -0500 by billcoker
Recently, I started to learn Zepto source code, share it and learn together. Front end newcomer, poor technology, forgive me a lotReference gitbook addressThank you for your contribution
The css selector zepto.qsa of zepto
As we all know, most of the time, we use $to get DOM objects, which has a lot to do with zepto.qsa.
Get selector If hand ...
Posted on Fri, 08 Nov 2019 09:05:09 -0500 by dancer
I. requests crawling Douban movie information -Request url: https://movie.douban.com/top250 -Request method: get -Request header: user-agent cookiesII. selenium request Library 1. What is selenium? At first, it is an automatic testing tool, which drives the browser to perform some good operations. ...
Posted on Sat, 02 Nov 2019 22:54:03 -0400 by badman
Now the e-commerce is booming, and the activity pages are one after another. Generally, they are flash buying and seconds killing. It's exciting to watch this article. Little ape gaga Just uncover the veil of these seckill functions, show you the actual appearance, let's learn the code.
from sel ...
Posted on Thu, 31 Oct 2019 14:41:13 -0400 by softsolvers
51JOB data is much better than BOSS direct employment. First, it is defined in items.py:
# define the fields for your item here like:
name :scrapy.Field = scrapy.Field()#Name
salary :scrapy.Field = scrapy.Field()#salary
education :scrapy.Field = scrapy.Field()#Ed ...
Posted on Wed, 30 Oct 2019 23:57:23 -0400 by kishanprasad