from selenium import webdriver a = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver") # 路径根据自己的修改 a.get('http://www.baidu.com') print(a.title) a.quit()
from selenium import webdriver a = webdriver.Firefox(executable_path="/usr/local/bin/geckodriver") # 路径根据自己的修改 a.get('http://www.baidu.com') print(a.title) a.quit()
转载于:https://www.cnblogs.com/Nathaniel-J/p/7929804.html