So i have a simple loop as follows
while True:
score_driver2 = webdriver.Chrome(options = chrome_options)
score_driver = score_driver2.get("https://dtlive.com.au/afl/dataview.php")
time.sleep(2)
score_driver2.quit()
time.sleep(30)
which essentially access the above website every 30 seconds and stores its data elsewhere. This loop constantly runs in the background whilst other functions use the data in "score_driver".
Problem is, as soon as it runs, the classic page crash from tab crash error occurs. I've read many questions on this site with similar problems, which seemed to be solved with
chrome_options = Options()
chrome_options.add_argument('--no-sandbox')
but that hasn't worked in my case. The options are the first thing run after importing packages.
Any pointers to how I can fix this would be appreciated, i'm completely stumped.