Get all odds for selected sports
get_sport_df.Rd
Get all odds for selected sports
Arguments
- sport
Sports list between "Tennis", "Basketball", and "Baseball". Others sports are not yet implemented.
- bet_status
"PREMATCH" or "LIVE"
- next_hours
next_hours
Examples
library(rvest)
library(xml2)
library(jsonlite)
# Tennis bets for next 3 hours:
get_sport_df(sport = "Tennis", bet_status = "PREMATCH", next_hours = 3)
#> # A tibble: 4 × 13
#> # Rowwise:
#> matchId status mainBetId sportId title Competitor1_Id Competitor1_Name
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 48564293 PREMATCH 313415288 5 Alex De M… 214182 "Alex De Minaur"
#> 2 48553947 PREMATCH 313402918 5 Maria Sak… 65950 "Maria Sakkari"
#> 3 48598943 PREMATCH 313457391 5 S.W.Hsieh… 791040 "S.W.Hsieh / E.…
#> 4 48564295 PREMATCH 313385039 5 Alexander… 57163 "Alexander Zver…
#> # ℹ 6 more variables: Competitor1_OddPreMatch <dbl>, Competitor2_Id <chr>,
#> # Competitor2_Name <chr>, Competitor2_OddPreMatch <dbl>, matchStart <dttm>,
#> # time_scrap <dttm>