Install ChromeDriver on Replit

**Question: **
I am trying to make a kahoot bot spammer with Python and selenium and I keep getting an error with ChromeDriver. How do I fix this? My code is below.
Repl link:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time

# Open Chrome browser using the ChromeDriver
driver = webdriver.Chrome()

I’m not entirely sure, but you call on the “Chrome” module even though it is not imported.

Hiya, @EpicGamingGamin, and welcome to the Replit Ask community! I think the problem is that you do not have chromium installed. However, please send the error message so we can get to the bottom of the problem.

To fix this, try opening replit.nix (it’s at the bottom of your files), and then adding pkgs.chromium into the deps list. So, it should look something like this or the like:

{ pkgs }: {
	deps = [
            pkgs.chromium
	];
}

Hope this helps! :cowboy_hat_face:

1 Like

huh? what do you mean

2 Likes

lol. Misread it - woops ;/

Hi @EpicGamingGamin , welcome to the forums!
I would not recommend creating a

AFAIK spammer bots are against Replit’s ToS.

1 Like