Created
July 2, 2020 10:55
-
-
Save JasonCrowe/3c6fd9a8cde041e283663676f709e638 to your computer and use it in GitHub Desktop.
Sample code to show loading an extension in selenium to solve recaptcha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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