I use Selenium to do the web-scrapping. However, my Firefox browser always crashes after a while (it is very intensive the task of scrapping).
The error message from Firefox:
Firefox had a problem and crashed. We’ll try to restore your tabs and windows when it restarts.
The error message from Python:
selenium.common.exceptions.WebDriverException: Message: Tried to run command without establishing a connection
I'd like to know if there's a way to deal with that. Ideally, I want something like after Firefox crashes, Selenium would open a new tab and continue from where it crashed.
i tried try: except:pass
this type of code and they didn't work out.