13 comments:

Hi darannu. Yes the latest version of RSelenium writes the log to file in the /bin directory in the RSelenium package. https://github.com/johndharrison/RSelenium/blob/master/R/util.R#L61 so the java screen appears blank but is still working.

I can`t connect phantomjs to R.I type:remDr <- remoteDriver(browserName = "phantomjs") remDr$open()but it shows:info: driver.version: unknownI also type:remDr <- remoteDriver(browserName = "C:/Users/annunzid/Desktop/phantomjs-1.9.7-windows/phantomjs.exe")but whit the same result.What I have to do ?

phantomjs needs to be in your path. So you would add C:/Users/annunzid/Desktop/phantomjs-1.9.7-windows/ to your path. See the explanation http://stackoverflow.com/questions/9546324/adding-directory-to-path-environment-variable-in-windows.

Alternatively you can give the path to the phantomjs binary as an argument. In your case that would be:

I`m trying to Scrape Flight Ticket Data Using R and Phantomjs, I have seen your code and it work for this webpage :http://www.finn.no/reise/flybilletter/resultat?numberOfChildren=0&tripType=roundtrip&requestedDestination=PEK.AIRPORT&requestedReturnDate=15.09.2014&requestedOrigin=OSL.AIRPORT&requestedDepartureDate=01.09.2014&numberOfAdults=1

This site is checking for the user agent. You can call extra phantomjs settings usingphantomjs.page.settings.SETTING = VALUE where SETTING is taken from https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage#webpage-settings. In this case we can set a user agent so the site see us as firefox 29: