不少難以採集的網站都使用selenium爬取,可是後來發現selenium
有特徵值,會被檢測出來,今天來小結一下反反爬方案
測試網站 全綠好像表明沒被檢測出html
網上不少都是這種博客,不知道靠不靠譜python
這種python的異步請求庫,彷佛極好的解決了
簡書博客web
彷佛使用開發者模式能夠避免被檢測,還須要測試
[python+selenium代碼]chrome
options = webdriver.ChromeOptions() options.add_experimental_option('excludeSwitches', ['enable-automation'])