Problem with Flask and Selenium [SOLVED]
my current project is a discord bot that can start my Minecraft server (which Im hosting on exaroton) with a message like !start in my server.
OK, that's not the problem. But I have a keepalive file in which I host a small flask web app so that I can ping that site from time to time and see if its still working (and keep my bot running for free don't tell anyone pls).
So here's my problem: my bot needs to open a browser, login and click a button. I use Selenium and it works fine but my Flask web app just stops working. When I comment out the Selenium part everything works fine again...
Is there a problem with running Flask and Selenium at the same time? Thanks for any help. I don't know if I need to upload my code.
Kewl project. Okay so what’s happening is your Flask App is running along with Selenium. Do you see the problem. If not, let me explain: you have two webserver projects running in one Repl which is a big nono. Not acceptable. That’s why “one stops working”. You can’t see it because a Repl can only run one web server at a time.
Also it’s generally a good idea to upload code 😊
uh did you figure it out? If you didn't tell me, and I'll just explain. but if you did solve it, let me know.