This function scrapes the sportsbookreview.com website to return betting lines

get_lines_range(
  sport = "NFL",
  bet_type = "spread",
  period = "full",
  start_date = 20191222,
  end_date = 20191223
)

Arguments

sport

Sport to scrape. Possible values are:

  • NFL, National Football League

  • NBA, National Basketball Association

  • NHL, National Hockey League

  • MLB, Major League Baseball

  • NCAAF, College Football

  • NCAAB, College Basketball

bet_type

Type of bets. Possible values are:

  • spread,

  • total,

  • moneyline,

period

Length of bet. Possible values are:

  • full, Full game

  • 1H, 1st Half

  • 2H, 2nd Half

  • 1Q, 1st Quarter

  • 2Q, 2nd Quarter

  • 3Q, 3rd Quarter

  • 4Q, 4th Quarter

start_date

Start Date of sporting events

end_date

End Date of sporting events

Value

dataframe containing betting lines for the given day

Examples

get_lines_range(
  sport = "NFL",
  bet_type = "spread",
  period = "full",
  start_date = 20191222,
  end_date = 20191231
)
#> No games played on 2019-12-22
#> Error in names(x) <- value: 'names' attribute [62] must be the same length as the vector [61]
get_lines_range(
  sport = "NBA",
  bet_type = "moneyline",
  period = "1H",
  start_date = 20191230,
  end_date = 20200105
)
#> No games played on 2019-12-30
#> Error in rbind(all_lines, temp): object 'temp' not found