How to install Chrome Extension using Selenium & Python

To add/install the DS-Amazon-Quick-View Chrome extension using Selenium‘s client you can use the following splution:

  • Code Block:

    from selenium import webdriver
    from selenium.webdriver.chrome.options import Options
    
    chrome_options = Options()
    chrome_options.add_extension('/home/daniel/amazon-project-scrapers/chromedriver_linux64/DS-Amazon-Quick-View_v2.8.9.crx')
    driver = webdriver.Chrome(options=chrome_options, executable_path="/path/to/chromedriver")
    driver.get('https://www.google.co.in')
    

Reference

You can find a couple of relevant discussions in:

Leave a Comment