from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
opt = Options()
# opt.add_argument("--headless")
opt.add_argument("--disable-gpu")
opt.add_argument("--disable-blink-features=AutomationControlled")
web = webdriver.Chrome(options=opt)
base_url='https://www.amazon.com/dp/B01MDUEBX1/?th=1'
web.get(url=base_url)
time.sleep(10)
selenium无头,防检测
最新推荐文章于 2025-01-23 15:49:01 发布