【发布时间】:2020-05-22 11:01:35
【问题描述】:
我正在尝试通过网页上的链接访问下一个网页。我正在尝试提取有关 TN 中所有计划生育的信息,并从下面的网页开始
我想知道如何从webpage 开始并导航到诺克斯维尔健康中心的网页。我已经尝试使用带有以下内容的 rvest 包...
library(rvest)
library(dplyr)
URL <- paste0("https://www.plannedparenthood.org/health-center/tn")
Webpage <- read_html(URL)
Webpage %>% html_nodes("p")
这给了我...
{xml_nodeset (6)}
[1] <p itemprop="name" data-facility-id="2610" data-affiliate-name="Planned Parenthood of Tennessee ...
[2] <p itemprop="name" data-facility-id="3348" data-affiliate-name="Planned Parenthood of Tennessee ...
[3] <p itemprop="name" data-facility-id="4247" data-affiliate-name="Planned Parenthood of Tennessee ...
[4] <p itemprop="name" data-facility-id="2716" data-affiliate-name="Planned Parenthood of Tennessee ...
[5] <p>Planned Parenthood delivers vital reproductive health care, sex education, and information t ...
[6] <p class="site-footer-legal">\n <small>\n © 2020 Planned Parenthood Fed ...
不太确定在哪里可以超越这一点。可以使用任何帮助。
【问题讨论】:
标签: r web-scraping rvest