How to reuse a selenium driver instance during parallel processing?
问题 To scrape a pool of URLs, I am paralell processing selenium with joblib. In this context, I am facing two challenges: Challenge 1 is to speed up this process. In the moment, my code opens and closes a driver instance for every URL (ideally would be one for every process) Challenge 2 is to get rid of the CPU-intensive while loop that I think I need to continue on empty results (I know that this is most likely wrong) Pseudocode: URL_list = [URL1, URL2, URL3, ..., URL100000] # List of URLs to be