selenium.webdriver Python crawler tutorial

Article Directory

Selenium installation and use

pip install selenium

Download the corresponding browser driver

  • Instantiate the browser
from selenium import webdriver
 
browser = webdriver.Chrome()
  • element positioning
    insert image description here
  • control browser
    insert image description here

Guess you like

Origin blog.csdn.net/weixin_46530492/article/details/132231190