Tag: tor

带有Tor的RSelenium与Windows上的新RSelenium版本

我在@jdharrison上找到了关于如何在Windows上使用RSelenium启动Tor的精彩答案: https : RSelenium 但是,在新版本的RSelenium中, startServer()已经不存在,其替换rsDriver()不会像startServer()之前那样使用java参数。 在新的RSelenium语法中,如何在firefox中启动Tor? 首先十分感谢)!

如何使用Tor与Java结合

更新了我的问题 我正在用Java构建一个爬虫系统来在线比较价格。 但是,我担心我的IP地址可以被禁止。 所以我打算使用代理来更改IP动态或使用一些工具自动轮换IP。 很多人都说TOR是一种强大的IP轮换工具。 但是,我不知道如何使用Tor以及如何将Tor集成到Java Web Application? 我搜索谷歌找到例子,但仍然没有找到任何有用的东西。 任何人都可以帮助我。

使用Selenium WebDriver运行TOR浏览器

我目前正在尝试使用Selenium WebDriver(JAVA)2.53和Firefox 43.0执行TOR 6.0.4。 我已按照本文中的说明使用Selenium WebDriver和Tor,但在将TOR的profilePath加载到Firefox二进制文件时出现错误。 我已经看到可以通过将TOR profile.default存档加载到firefox binaty来进行TOR午餐,但是当我使用配置文件实例化二进制文件时,我得到了驱动程序信息:driver.version:unknown。 我试图改变firefox版本,但仍然。 在我启动驱动程序的代码下面。 我也使用Windows。 String torPath = “C:\\Users\\Jose Bernhardt\\Desktop\\Tor Browser\\Start Tor Browser.exe”; String profilePath = “C:\\Users\\Jose Bernhardt\\Desktop\\Tor Browser\\Browser\\TorBrowser\\Data\\Browser\\profile.default”; File torProfileDir = new File(profilePath); FirefoxBinary binary = new FirefoxBinary(new File(torPath)); FirefoxProfile torProfile = new FirefoxProfile(torProfileDir); FirefoxDriver driver = new FirefoxDriver(); driver.get(“http://www.google.com/webhp?complete=1&hl=en”); 请参阅下面抛出的exception: Exception in thread “main” org.openqa.selenium.WebDriverException: Specified […]

Java Tor Lib:如何使用Java设置Orchid Tor Lib?

我正在尝试使用Java代码实现Orchid Tor lib; 不幸的是,由于缺乏文档,我无法使其工作,这就是我所做的: ……………….. private final static String DEFAULT_SOCKS_PORT = “9050”; TorClient torClient = new TorClient(); torClient.addInitializationListener(new TorInitializationListener() { @Override public void initializationProgress(String string, int i) { System.out.println(“>>> [ “+ i + “% ]: “+ string); // throw new UnsupportedOperationException(“Not supported yet.”); //To change body of generated methods, choose Tools | Templates. } @Override […]

使用Selenium WebDriver和Tor

因为Tor Browser Bundle只是Firefox的补丁版本,所以似乎可以使用带有Tor浏览器的FirefoxDriver 。 这是我到目前为止所尝试的: String torPath = “C:\\Users\\My User\\Desktop\\Tor Browser\\Start Tor Browser.exe”; String profilePath = “C:\\Users\\My User\\Desktop\\Tor Browser\\Data\\Browser\\profile.default”; FirefoxProfile profile = new FirefoxProfile(new File(profilePath)); FirefoxBinary binary = new FirefoxBinary(new File(torPath)); FirefoxDriver driver = new FirefoxDriver(binary, profile); driver.get(“http://www.google.com”); 这会导致一个空白的Tor浏览器页面打开,并显示一条弹出消息: 无法加载您的Firefox配置文件。 它可能丢失或无法访问。 我知道该配置文件是有效/兼容的,因为我可以成功启动浏览器和配置文件: binary.startProfile(profile, profilePath, “”)); 但是,我不知道如何将命令发送到以这种方式打开的浏览器。 我发现了类似的问题,但我特意寻找Java解决方案,最好是在Windows上测试。 我正在使用可在此处下载的独立Selenium库和可在此处下载的Tor Browser Bundle。