from selenium import webdriver
'''设置chromedriver不加载图片,可以加速加载页面的速度'''
chrome_opt = webdriver.ChromeOptions()
prefs={"profile.managed_default_content_settings.images":2}
chrome_opt.add_experimental_option("prefs",prefs)
browser = webdriver.Chrome(executable_path="C:Program Files (x86)GoogleChromeApplicationchromedriver.exe",chrome_options=chrome_opt)
browser.get("https://www.taobao.com")