Let scraper work on MacOS

pull/5/head
Collin Heist 3 years ago committed by GitHub
parent 7db6ec4c08
commit ca93774949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options, executable_path=r"chromedriver.exe")
driver = webdriver.Chrome(options=options)
stealth(driver,
languages=["en-US", "en"],
@ -246,4 +246,4 @@ for url in set(img_urls):
number_of_images_downloaded += 1
time.sleep(25)
driver.quit()
driver.quit()

Loading…
Cancel
Save