r - 同时 rvest 多个文本行
问题描述
我正在刮Udemy课程,我想刮右边的激励:
他们所有的 css 都是.incentives__text
.
这是网址:
url <- read_html("https://www.udemy.com/linux-linux-security-masterclass-3-in-1/")
incentives <- list()
incentives <- url %>%
html_nodes(".incentives__item") %>% # isloate the text
html_text() # get the text
这只是刮了第一行,但我想一次刮掉所有的奖励。我该怎么做?
解决方案
推荐阅读
- javascript - 使用 lodash 过滤对象
- excel - 不增加行
- wpf - 绑定属性更新时以样式触发 xaml 动画
- python - 如何从 Windows 命令提示符在虚拟环境中运行 python 程序?
- r - 删除 ggplot、PCA 中的样本名称
- php - 从编辑/ID 导航到主页和其他页面时出错。Navingation 停留在 edit/id 并更改为 edit/add 或 edit/home 而不是 resto/home
- python - list comprehension with substring replacement not working as intended
- javascript - 使用 chrome.storage.sync 时未按正确顺序遍历树
- cheerio - 在火炮测试中获取捕获的选择器的文本内容
- css - 非常旧的 Chrome 36 上的 Vue + Vuetify