r - rvest 包的 read_html 问题
问题描述
我想为以下网址抓取数据:https ://es.wikipedia.org/wiki/Elecciones_a_la_Asamblea_de_Madrid_de_2021#Encuestas
我的代码如下:
html <- 'https://es.wikipedia.org/wiki/Elecciones_a_la_Asamblea_de_Madrid_de_2021#Encuestas'
table <- read_html(html)
但是,当我打印表格时,它给了我一个“无效”的两个元素列表。有什么建议吗?
解决方案
推荐阅读
- c# - 获取自定义答案,即 Web API 中 HTTP Post 请求的对象
- linq - 基于其他列条件的 Linq 顺序
- python - 使用任务计划程序窗口自动运行 Jupyter Notebook 脚本
- xamarin - 构建 Xamarin.Forms 时出现 Nuget 包错误 NU5050
- excel - 新手 - 创建下拉列表 x 2 并编写代码。- 检测到不明确的名称
- algorithm - Voronoi 过滤:这个算法是如何工作的?
- typescript - Webpack 生成 JavaScript 源映射而不是 TypeScript
- scala - ScalaJ vs Vertx - 相同的http调用不同的结果
- amazon-web-services - 将 AWS Comprehend 自定义实体与通用实体一起使用
- php - Heroku - 未安装“amqp”扩展