Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html R跨多个页面进行web抓取_Html_R_Web Scraping_Rvest - Fatal编程技术网

Html R跨多个页面进行web抓取

Html R跨多个页面进行web抓取,html,r,web-scraping,rvest,Html,R,Web Scraping,Rvest,我正在开发一个网络搜索程序,搜索特定的葡萄酒,并返回该品种的当地葡萄酒列表。我遇到的问题是多页结果。下面的代码是我正在使用的基本示例 url2 <- "http://www.winemag.com/?s=washington+merlot&search_type=reviews" htmlpage2 <- read_html(url2) names2 <- html_nodes(htmlpage2, ".review-listing .title") Wines2 &l

我正在开发一个网络搜索程序,搜索特定的葡萄酒,并返回该品种的当地葡萄酒列表。我遇到的问题是多页结果。下面的代码是我正在使用的基本示例

url2 <- "http://www.winemag.com/?s=washington+merlot&search_type=reviews"
htmlpage2 <- read_html(url2)
names2 <- html_nodes(htmlpage2, ".review-listing .title")
Wines2 <- html_text(names2)
url2