
selenium
彭世瑜
记录我的工作学习笔记
展开
-
Python:Selenium + Chrome添加认证代理
添加无认证代理,以参数形式添加chromeOptions = webdriver.ChromeOptions()chromeOptions.add_argument('--proxy-server=http://ip:port') driver = webdriver.Chrome(chrome_options=chromeOptions)添加认证代理,以插件的形式添加1、新建扩展文件夹 Chrome-proxy-helper添加两个文件Chrome-proxy-helper/ backg原创 2020-08-18 13:54:30 · 2773 阅读 · 0 评论 -
Python爬虫:Selenium鼠标点击二级菜单
selenium包中ActionChains类给出的示例如下:menu = driver.find_element_by_css_selector(".nav")hidden_submenu = driver.find_element_by_css_selector(".nav #submenu1") actions = ActionChains(driver)原创 2018-10-10 11:41:13 · 6316 阅读 · 0 评论