Merge pull request #5 from CollinHeist/master

Let scraper work on MacOS
pull/6/head
AnsonLai 2 years ago committed by GitHub
commit 30c09945ec
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