I just learned Selenium to scrape some data that couldn't be reached with Scrapy. I have made different scripts from different bots, and they run as expected individually.
The two browsers are opened one after another, while I want to have them running at the same time. Is there a simple way to do that? Thank you for your help!
EDIT :
I have been trying this with multiprocessing, as indicated. But unfortunately it runs only one script at the time, while two selenium windows are opened. One stay inactive. Here is my code if you want to have a look :
u = UBot()
google = GoogleBot()
list_test = [[u.main(), google.main()]]
processes = []
for test in list_test:
p = multiprocessing.Process()
processes.append(p)
p.start()
EDIT 2:
I could solve it and posted code below !
multiprocessingbased approach.