Selenium download method:
library requests requesting the same method
is the use of the terminal to download, with a code pip3 install selenium
another, then download the pycharm
for normal use need to download drivers, http://npm.taobao.org/ mirrors / chromedriver / 2.38 / download according to their own system. After unpacking the files copied to the exe suffix python interpreter directory
windows copied to the system directory python script parser
mac system directly copied to the root directory of the python interpreter
from the webdriver Selenium Import
Import Time
'' '' ''
' ''
drive browser in two ways
default script directory to find the drive to
another drive to fill in the path
'' '
driver = webdriver.Chrome ()
driver.get (url = "HTTP: \\ www.baidu.com")
the time.sleep (3)
driver.get (url = "HTTP: \\ www.taobao.com")
the time.sleep (3)
driver.get (url = "HTTP: \\ www.alipay.com")
Time.
To be continued
04_python
Guess you like
Origin www.cnblogs.com/RenJian666/p/11099538.html
Recommended
Ranking