ChromeDriver error unknown error: cannot get automation extension
You need the latest version of chromedriver.exe. https://sites.google.com/a/chromium.org/chromedriver/downloads
This is needed for chromedriver version 57+
I was having this same issue. Once I updated the chromedriver version everything worked again.
Message: unknown error: cannot parse internal JSON template: Line: 1, column: 1, Unexpected token
I managed to get it up and running again! The solution that worked for me was deleting C:\Users\USER\AppData\Local\Google\Chrome folder and reinstalling Chrome. If you run into this problem, give it a try.
How to install Chrome Extension using Selenium & Python
To add/install the DS-Amazon-Quick-View
Chrome extension using Selenium's python 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:
- [Python] How to load extension within chrome driver in selenium with python
- [Java] How to install extension permanently in geckodriver
Related Topics
Keep Meteor Running on Amazon Ec2
Does Linking an '-Lpthread' Changes Application Behaviour? (Linux, Glibc)
Get Parent Directory of a File in Bash
How to Install a Rpm Package and Its Dependencies Offline
Bash - Surround All Array Elements or Arguments with Quotes
Arm Inline Asm: Exit System Call with Value Read from Memory
Create a Virtual Floppy Image Without Mount
Find String Inside a Gzipped File in a Folder
How to Change the Mime Type of a File from the Terminal
Release of Flock in Case of Errors
How to Compile Glibc 32Bit on an X86_64 MAChine
Decrypt Obfuscated Perl Script