2
I wrote an automation to follow people on instagram, but when I put Run in the code, it returns me in the log with no error, and still doesn’t open the browser for me to test the code. I think there’s something wrong at the beginning of my code that’s not allowing me to open the browser but I don’t know what it might be. This is the code I’m using to open Firefox:
from selenium.webdriver.common.keys import Keys
import time
class InstagramBot:
def __init__(self, username, password):
self.username = username
self.password = password
self.driver = webdriver.Firefox(executable_path=r'C:\geckodriver\geckodriver.exe')```