用rselenium:服务器发行
我正在尝试使用rselenium进行Webcrape,bacause我需要刮擦页面上的内容(带有“ rvest”),然后单击许多链接以刮擦其他信息(也带有rvest的概率)。因此,我需要rselenium单击这些链接。
但是,我还无法推出rselenium。当我运行rsdrvier()时:
rD <- rsDriver(port=9515L,
browser=c("chrome"),
version="4.0.0-alpha-2",
chromever="103.0.5060.53")
我收到一条错误消息,
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in `[[<-`(`*tmp*`, platvec, value = switch(Sys.info()["sysname"], :
no such index at level 1
我已经下载了Java和Chromedriver。我已经在系统中添加了他们的道路。
请注意,我正在使用: Windows 11 R版本:4.0.3 Chrome版本:103.0.5060.53
感谢您的帮助!
I am trying to webscrape with RSelenium, bacause I need to scrape what's on a page (with 'rvest') and them click on many links to scrape another info (probabyl also with rvest). Therefore, I need RSelenium to click on those links.
However, I am not able yet to launch RSelenium. When I run rsDrvier() :
rD <- rsDriver(port=9515L,
browser=c("chrome"),
version="4.0.0-alpha-2",
chromever="103.0.5060.53")
I get an error message
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in `[[<-`(`*tmp*`, platvec, value = switch(Sys.info()["sysname"], :
no such index at level 1
I've already downloaded JAVA and chromedriver. I've already put their PATH in the system.
Note that I'm using :
Windows 11
R version : 4.0.3
Chrome version : 103.0.5060.53
Thanks for you help !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果将Docker安装在您的计算机上,则可以考虑使用类似的东西与Firefox一起使用rselenium:
If docker is installed on your computer, you can consider something like this to use RSelenium with firefox :