How can I set the Tor IP to a GeoLocation?


Staff member
I'm building a bot therefore I want to use Tor. More, I want to set my Ip to chosen Geoloaction or Country. Is this possible?

Heres my Tor initializing code

public static void setUp() throws Exception {
    //driver = new HtmlUnitDriver();    
    //driver = new FirefoxDriver();
    String torPath = "/Applications/";
    String profilePath = "/Applications/";
    FirefoxProfile profile = new FirefoxProfile(new File(profilePath));
    FirefoxBinary binary = new FirefoxBinary(new File(torPath));
    driver = new FirefoxDriver(binary, profile);        
    baseUrl = "";
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);