How can I run selenium 247 ?
I have two files 'main.py' and 'keep_alive.py'. I am trying to run selenium in the main file and in other threads I am trying to run keep_alive.py which creates a flask webserver so that I can ping the keep_alive server with uptimerobot. So that both the file will run in repl.it servers 24/7. But when selenium starts the flask webserver stops running and ti shows an error
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
Does anyone know a solution to this?
@chethansai
I have solved the problem.
@ChandanHans oh great! Can you please explain how?
@chethansai
I have created flask server in main.py and run selenium task in Task.py. And then I called flask app and Task() in main.py.
you can check it here
https://replit.com/@ChandanHans/selinium247#main.py