I already looked into a lot of topics & answers, but I still can't get it working.
I get the following errors while launching Tor with Selenium:
"Tor failed to start"
and
"Could not connect to Tor control port"
My code:
import re
import sys
import time
import datetime
import pyautogui
import os
import subprocess
import random
import math
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary(r'D:\Desktop\Tor\Tor Browser\Browser\firefox.exe')
profile = FirefoxProfile(r'D:\Desktop\Tor\Tor\Browser\Browser\TorBrowser\Data\Browser\profile.default')
driver = webdriver.Firefox(profile, binary)
driver.get("google.com")
I also have the geckodriver installed.
Please help me! Thank you.