Ask coding questions

← Back to all posts
Flask + Selenium Script Stops working after first request
mdb571 (2)

Hey there,
I have a flask server that runs selenium Chromedriver in headless mode to scrape a dynamic website and download a file from it. So whenever I run the server for the first time after creating the repl it works perfectly but then the live url shows "Hmm..we couldnt reach your repl" . There's no error shown in the console also. What am I doing wrong here

ruiwenge2 (1126)

you need to click on the run button

mdb571 (2)

@ruiwenge2 the server is running but returns no response. I think many had problems when running selenium along with flask. Could'nt find a solution till now :/