我正在尝试运行可以识别可疑网络钓鱼站点的代码(在 Python 中)。我正在使用 Selenium 的 chromedriver。这是我的代码:
import os, os.path, sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option( "prefs", {'safebrowsing.enabled':1})
chromedriver = "my chromedriver path"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver, chrome_options=chrome_options)
driver.get('site url I want to check')
我的代码在隐私设置中检查了“启用网络钓鱼和恶意软件保护”的“V”,但由于某种原因,在使用 Chrome(不是 Python 打开的窗口)时,我检查的网站被怀疑为网络钓鱼,并且 Chrome 窗口由我打开Python 代码没有显示任何与网络钓鱼相关的内容。
有任何想法吗?