Tracy Morris
Tracy Morris

Reputation: 11

Web scraping a tournament bracket from trackwrestling.com

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("https://www.trackwrestling.com/predefinedtournaments/BracketViewer.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.com page. Can anyone tell me what I'm doing wrong?

Upvotes: 1

Views: 35

Answers (0)

Related Questions