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

This commit is contained in:
Rohit Pai 2023-04-25 18:51:24 +01:00
parent 123bd05a5a
commit 94e3f728d5

View File

@ -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)