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