R 中运动表的网络抓取

问题描述 投票:0回答:1

我需要您的帮助/建议,使用 R 或 Python 从以下链接中抓取表格信息! https://euroleaguefantasy.euroleaguebasketball.net/en/stats-fantasy-euroleague

到目前为止我已经尝试了

rvest
套餐但没有成功!

url <- "https://euroleaguefantasy.euroleaguebasketball.net/en/stats-fantasy-euroleague"

library(rvest)
read_html(url)
#> {html_document}
#> <html lang="en">
#> [1] <head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8 ...
#> [2] <body class="loading">\n<app-root></app-root><button id="ot-sdk-btn" clas ...

创建于 2023-10-06,使用 reprex v2.0.2

我无法检索,或者我不知道如何检索这里的任何内容!自从

read_html(URL)[1]
read_html(URL)[2]
不提供任何内容

任何有关我如何继续的想法或建议都非常感谢!

python r web-scraping rvest
1个回答
0
投票

您可以使用 pythonselenium 来抓取链接中提供的所需数据。 您可以从这里获得帮助 如何在Python中使用Selenium?

© www.soinside.com 2019 - 2024. All rights reserved.