[英]RSelenium Installation on MacBook, with Chrome
我安装了RSelenium(软件包),以便从hockeyreference.com抓取一些NHL统计信息
一切正常,但最近停止工作,并出现以下错误:
[1] "Connecting to remote server"
Could not open chrome browser.
Client error message:
Undefined error in httr call. httr output: Failed to connect to
localhost port 4567: Connection refused
Check server log for further details.
$client
[1] "No sessionInfo. Client browser is mostly likely not opened."
$server
Process Handle
command : /private/var/folders/dk/kf4tf83n1lg40687w6fmq5wh0000gn/T/Rtmpiy1cOY/file1d1856ef53ae.sh
system id : 18786
state : exited
Warning message:
In rsDriver(port = 4567L, geckover = NULL, phantomver = NULL) :
Could not determine server status.
我尝试重新安装,但无法正常工作。 这个问题概述了我的原始安装(使用自制软件,并安装了最新的chromedriver):
任何帮助都会很棒。 我在RSelenium中运行的代码在这里:
https://github.com/papelr/nhldatar/blob/master/nhldatar/R/nhldatar-phase-2.R
TL; DR,我无法使rsDriver参数起作用,并且给出了上面发布的错误:
rsDriver(port = 4567L, geckover = NULL, phantomver = NULL)
remDr <- remoteDriver(browserName = "chrome")
remDr$open()
如果RSelenium有效(打开chrome浏览器),那么其余的将运行! 谢谢!
我建议:
为Mac安装docker,
为chrome,firefox(推荐版本3.5.1)或幻像拉图像
在docker中运行映像:docker run ...
创建远程驱动程序:
remDr <-remoteDriver(remoteServerAddr =“此处为IP”,端口= 4445L,browserName =“ firefox”)
如果您具有调试版本,则可以在VNC中观看您正在做什么
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.