Skip to content

Instantly share code, notes, and snippets.

@JasonCrowe
Created July 2, 2020 10:55
Show Gist options
  • Save JasonCrowe/3c6fd9a8cde041e283663676f709e638 to your computer and use it in GitHub Desktop.
Save JasonCrowe/3c6fd9a8cde041e283663676f709e638 to your computer and use it in GitHub Desktop.
Sample code to show loading an extension in selenium to solve recaptcha
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = webdriver.ChromeOptions()
options.add_extension('./extension_6_0_0_0.zip')
###############
# ReCaptcha Solver CRX 6.0
# https://stackoverflow.com/questions/34222412/load-chrome-extension-using-selenium/52420595#52420595
###############
driver = webdriver.Chrome('./chromedriver', chrome_options=options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment