Rvest:html_text() 仅抓取正文的第一段

Rvest: html_text() is scraping only first paragraph of the body of text

我已经尝试了 html_text() 和 html_text2()。我正在尝试通过网络抓取一篇有多个段落的新闻文章,但只有第一段出现在 R 中。

library(rvest)
read_html("https://ethiopianmonitor.com/2021/08/27/prime-minister-abiy-attends-g20-compact-with-africa-meeting/") %>%
    html_node("#content p")%>%
    html_text()

html_node 替换为 html_nodes 应该可行。