【发布时间】:2022-01-28 03:36:04
【问题描述】:
我正在尝试从网站的特定类中提取链接。但是,当我这样做时,会有一个空数据集。
library(rvest)
library(purrr)
library(dplyr)
links_avai <- paste0("https://avai.com.br/page", seq(from = 1, to = 2)) %>%
map(. %>%
read_html() %>%
html_nodes(xpath = '//*[@class="gdlr-blog-title"]') %>%
html_attr("href"))
【问题讨论】:
标签: web-scraping rvest