From 94e3f728d5197a36e93b620f0e49b7b867964693 Mon Sep 17 00:00:00 2001 From: rodude123 Date: Tue, 25 Apr 2023 18:51:24 +0100 Subject: [PATCH] Updated downloadimages.py to better support the card names and fixed a bug so that it would start from 0 no 1 in the array. Also updated the README.md to better help them on how to use it --- downloadimages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/downloadimages.py b/downloadimages.py index 6395e61..f9a0db2 100644 --- a/downloadimages.py +++ b/downloadimages.py @@ -4,7 +4,8 @@ from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys options = webdriver.ChromeOptions() -prefs = {"download.default_directory" : "/home/rodude123/Downloads/mtg/"} +defaultDir = "/home/rodude123/Downloads/mtg/" +prefs = {"download.default_directory" : defaultDir} options.add_experimental_option("prefs",prefs) options.add_argument("--headless") driver = webdriver.Chrome(executable_path='./chromedriver', options=options)