【发布时间】:2018-06-22 12:08:34
【问题描述】:
我想从 google play store 中抓取我想要的几个应用程序评论的数据。
-
名称字段
-
他们得了多少星
-
评论他们写的
This is the snap of the senerio
#Loading the rvest package
library('rvest')
#Specifying the url for desired website to be scrapped
url <- 'https://play.google.com/store/apps/details?id=com.phonegap.rxpal&hl=en_IN'
#Reading the HTML code from the website
webpage <- read_html(url)
#Using CSS gradient_Selector to scrap the name section
Name_data_html <- html_nodes(webpage,'.kx8XBd .X43Kjb')
#Converting the Name data to text
Name_data <- html_text(Name_data_html)
#Look at the Name
head(Name_data)
但结果是
> head(Name_data)
character(0)
后来我尝试发现更多我发现 Name_data_html 有
> Name_data_html
{xml_nodeset (0)}
我是网络抓取的新手,有什么可以帮我解决这个问题的!
【问题讨论】:
标签: r web-scraping rvest data-extraction