I used selenium on replit a few months ago and it does work, but it's not the smoothest experience (especially when you have a free tier).
Installing selenium on replit:
- You can install it by running
python -m pip install selenium
in
shell (next to console)
- Make requirements.txt file, paste all required modules there and use this code with
os.system
method (which you can use to execute commands):
import os
os.system("python -m pip install -r requirements.txt")
- When you import selenium at the beginning in replit it should automatically download it, but if it doesn't then:
os.system("python -m pip install selenium")