我尝试过以下但没有成功:
#install.packages
library(rvest)
library(tidyverse)
library(knitr)
library(stringr)
# Store web url
url <- read_html("http://www.sport.es/es/")
# Comentarios
comment <- url %>%
html_nodes("p span a span.livefyre-commentcount")%>%
html_text(trim=TRUE)
comment
由于