from selenium import webdriver from selenium.common.exceptions import TimeoutException, NoSuchElementException import time # 声明浏览器对象 driver = webdriver.Chrome() # 可用的浏览器对象: # Firefox,Chrome,Ie,Edge,Opera,Safari,BlackBerry,PhantomJS,Android # 访问页面 def…