Learn R Programming

BAwiR (version 1.3.4)

scraping_games_acb: ACB player game finder data

Description

This is the new function to obtain the ACB box score data.

Usage

scraping_games_acb(code, game_id, season = "2020-2021", 
                   type_season = "Regular Season",
                   user_email, user_agent_goo)

Value

A data frame with the player game finder data (box score data).

Arguments

code

Game code.

game_id

Game id.

season

Season, e.g. 2022-2023.

type_season

Type of season, e.g. 'Regular season'.

user_email

Email's user to identify the user when doing web scraping. This is a polite way to do web scraping and to certify that the user is working as transparently as possible with a research purpose.

user_agent_goo

User-agent to identify the user when doing web scraping. This is a polite way to do web scraping and to certify that the user is working as transparently as possible with a research purpose.

Author

Guillermo Vinue

See Also

scraping_games_acb_old

Examples

Run this code
if (FALSE) {
# Not needed to scrape every time the package is checked, built and installed.
user_email <- "yours"       
user_agent_goo <- "yours" 
df1 <- scraping_games_acb("103350", 1, "2022_2023", "Regular Season",
                          user_email, user_agent_goo)
}                           

Run the code above in your browser using DataLab