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:
parent
123bd05a5a
commit
94e3f728d5
@ -4,7 +4,8 @@ from selenium.webdriver.common.by import By
|
|||||||
from selenium.webdriver.common.keys import Keys
|
from selenium.webdriver.common.keys import Keys
|
||||||
|
|
||||||
options = webdriver.ChromeOptions()
|
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_experimental_option("prefs",prefs)
|
||||||
options.add_argument("--headless")
|
options.add_argument("--headless")
|
||||||
driver = webdriver.Chrome(executable_path='./chromedriver', options=options)
|
driver = webdriver.Chrome(executable_path='./chromedriver', options=options)
|
||||||
|
Loading…
Reference in New Issue
Block a user