首页 > 解决方案 > rvest 抓取不完整的 html 表

问题描述

我试图#tournametTable从这个网站上抓取:https ://www.oddsportal.com/soccer/england/premier-league/

library(dplyr)
library(rvest)

read_html("https://www.oddsportal.com/soccer/england/premier-league/") %>%
  html_node(., "#tournamentTable") %>%
  html_table(.)

结果不完整,我只得到了表中包含的部分数据。在阅读了 StackOverflow 之后,我怀疑我做错了什么,或者这个表需要一种特殊的方法rvest来获取所有数据。

如何使用 rvest 获取表体中包含的所有数据?

标签: rrvest

解决方案


推荐阅读