1

I'd like to get RSelenium running to help with some rvest web scraping. On my Windows 10 OS, when I run

rD <- RSelenium::rsDriver()

I get the following:

checking Selenium Server versions:

BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in if (file.access(phantompath, 1) < 0) { : 
  argument is of length zero

What could be causing this error? I also tried using RSelenium with docker to no avail. And when I tried this (based on a related SO post):

binman::rm_platform("phantomjs") wdman::selenium(retcommand = TRUE)

I received this error:

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

Any insight much appreciated.

  • Try `driver = rsDriver( port = 4847L, browser = c("firefox"))` – Nad Pat Mar 22 '22 at 16:43
  • Thanks but that results in the following error: `Error in curl::curl_fetch_disk(url, x$path, handle = handle) : schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid}` – Hubert Hubbleman Mar 22 '22 at 16:50
  • The error is common problem i think when googled i got many results. – Nad Pat Mar 22 '22 at 16:56
  • I'm an R newbie and really don't know what to do now that I can't get RSelenium to work. As far as I can tell RSelenium is the only available option for scraping JS pages with rvest. – Hubert Hubbleman Mar 22 '22 at 17:52

0 Answers0