selenium爬取问题

2019-03-15  本文已影响0人  __8771

chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\selenum\AutomationProfile"

2.selenium接管浏览器,绕过selenium监测,正常使用

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
chrome_driver = "C://Python27/chromedriver.exe"   #chrome插件
browser = webdriver.Chrome(chrome_driver, chrome_options=chrome_options)  
上一篇 下一篇

猜你喜欢

热点阅读