RSelenium with Tor with NEW RSelenium version on Windows

前端 未结 1 1813
深忆病人
深忆病人 2021-02-07 08:16

I found this fantastic answer by @jdharrison on how to launch Tor using RSelenium on windows: https://stackoverflow.com/a/39048970/7837376

In the new versio

相关标签:
1条回答
  • 2021-02-07 08:45

    You can start the selenium server yourself instead of using rsDriver

    browserP <- "C:/Users/john/Desktop/Tor Browser/Browser/firefox.exe"
    jArg <- paste0("-Dwebdriver.firefox.bin=\"", browserP, "\"")
    pLoc <- "C:/Users/john/Desktop/Tor Browser/Browser/TorBrowser/Data/Browser/profile.meek-http-helper/"
    jArg <- c(jArg, paste0("-Dwebdriver.firefox.profile=\"", pLoc, "\""))
    
    wdman::selenium(jvmargs=jArg, selargs='any selenium args')
    remDr <- remoteDriver(browserName ="firefox", port=4567L)
    driver <- remDr$open()
    
    0 讨论(0)
提交回复
热议问题