1
私はボットを作っていますので、Torを使いたいです。さらに、IpをGeoloactionまたはCountryを選択して設定します。これは可能ですか?Tor IPをGeoLocationに設定するにはどうすればよいですか?
相続人は私のTorはコード
public static void setUp() throws Exception {
//driver = new HtmlUnitDriver();
//driver = new FirefoxDriver();
String torPath = "/Applications/TorBrowser.app/Contents/MacOS/firefox";
String profilePath = "/Applications/TorBrowser.app/TorBrowser/Data/Browser/profile.default/";
FirefoxProfile profile = new FirefoxProfile(new File(profilePath));
FirefoxBinary binary = new FirefoxBinary(new File(torPath));
driver = new FirefoxDriver(binary, profile);
baseUrl = "https://qa2all.wordpress.com";
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
ありがとうございました。サー! –