I am running a python code to do continuous web scraping (on linux mint with Python 2.7). Due to some reasons, the code breaks down from time to time. What I have done so far is to manually re-run the code whenever an error occurred.
I want to write another python code to replace me to do this 'check status, if break, then re-run' job.
I am not sure where to start. Could anyone give me a hint?