simonfarah / tiktok-bot

🦾 A bot that generates followers, likes, views, shares and comment likes
MIT License
566 stars 185 forks source link

firefox driver can't be found! #127

Closed Arashiiiii closed 2 months ago

Arashiiiii commented 2 months ago

Capture d’écran 2024-09-09 002042

I did install the driver but the bot does not work

simonfarah commented 2 months ago

Please show me how you configured the code to access the web driver and send me the path to your web driver installation.

Arashiiiii commented 2 months ago

from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from webdriver_manager.firefox import GeckoDriverManager
import time

service = Service(GeckoDriverManager().install())
driver = webdriver.Firefox(service=service)
driver.get("https://www.google.com")

time.sleep(5) driver.quit()

Arashiiiii commented 2 months ago

my path to the webdriver is "C:\Users\HP\Desktop\geckodriver.exe" the latest version of selenium doesn't require the path in code I guess

simonfarah commented 2 months ago

Remove those lines, I tested it with your setup and it works https://github.com/simonfarah/tiktok-bot/blob/c588d6f906a6fb7f2d7b987a4ff015ed5298a5cf/bot.py#L44 https://github.com/simonfarah/tiktok-bot/blob/c588d6f906a6fb7f2d7b987a4ff015ed5298a5cf/bot.py#L49

Arashiiiii commented 2 months ago

works fine now. thanks!