小修小补
This commit is contained in:
parent
973d049315
commit
dc06353e8d
4
run.py
4
run.py
@ -7,8 +7,8 @@ def main():
|
||||
driver = init_driver_chrome()
|
||||
get_points(driver=driver)
|
||||
|
||||
driver.quit()
|
||||
time.sleep(30)
|
||||
driver.close()
|
||||
time.sleep(10)
|
||||
get_points(driver=driver)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
2
utils.py
2
utils.py
@ -31,7 +31,7 @@ def init_driver_chrome():
|
||||
options = Options()
|
||||
options.add_argument("--headless") # Run in headless mode
|
||||
options.add_argument("--no-sandbox")
|
||||
options.add_argument('--user-data-dir=/home/pythagodzilla/.config/chromium/Default')
|
||||
options.add_argument('--user-data-dir=/home/pythagodzilla/.config/chromium')
|
||||
# options.add_experimental_option("detach", True)
|
||||
driver = webdriver.Chrome(service=service, options=options)
|
||||
driver.implicitly_wait(5) # Implicit wait for elements to load
|
||||
|
Loading…
x
Reference in New Issue
Block a user