Running Selenium WebDriver using Python with extensions (.crx files)
问题 I went to Chrome Extension Downloader to snag the .crx file for 'Adblock-Plus_v1.4.1'. I threw it in the directory I'm working in, and then ran: from selenium import webdriver chop = webdriver.ChromeOptions() chop.add_extension('Adblock-Plus_v1.4.1.crx') driver = webdriver.Chrome(chrome_options = chop) It totally acknowledges that it exists, but it gives me what looks like a ChromeDriver.exe style message: ERROR:extension_error_reporter.cc(56)] Extension error: Package is invalid: 'CRX_PUBLIC