I built a crawler that gets the product information of a list of products entered by the user. Sometimes, the crawler freezes, especially if the list of products is long and if the crawler runs on headless mode.
The bug seems random and is not reproducible, which makes me think it is caused by the resource utilization of the website being crawled.
Since this is a non-reproducible bug, I don't think I can fix it, but is there a way to detect that the crawler has frozen and try again?
Here is some information about the crawler and the bug:
The crawler is built using Selenium and Python.
The bug occurs with different websites and products.
The bug occurs in the "normal" mode, but occurs more often in the headless mode.
Thanks!
Felipe