admin管理员组文章数量:1291119
I'm trying to use the rvest package in R to scrape a tournament bracket from the 2024 NCAA div 1 wrestling tournament. I've used the selector gadget tool to determine that the CSS selector for the first round of matches is ".full-line" and I would like to scrape just the text for the first round of matches.
Below is my code, but it results in first_round containing 'character(empty)' in the environment.
champ_125_24 <- read_html(".jsp?TIM=1737755008372&twSessionId=hzqsyskuvp&&groupId=2133348135&width=700&height=590&font=8&includePages=2&templateId=0")
first_round <- champ_125_24 |>
html_elements(".full-line") |>
html_text2()
I believe the issue has something to do with the website refreshing or reloading after a certain amount of time and returning to the main trackwrestling page. Can anyone tell me what I'm doing wrong?
本文标签: css selectorsWeb scraping a tournament bracket from trackwrestlingcomStack Overflow
版权声明:本文标题:css selectors - Web scraping a tournament bracket from trackwrestling.com - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741525601a2383446.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论