Learn R Programming

BAwiR (version 1.3.4)

scraping_games_euro: Euroleague and Eurocup player game finder data

Description

This function should allow us to get all the player game finder data for all the desired Euroleague and Eurocup seasons available from https://www.euroleaguebasketball.net/euroleague/game-center/ and https://www.euroleaguebasketball.net/eurocup/game-center/, respectively.

NOTE (2023): The Euroleague and Eurocup websites have changed their format, so this function will need to be updated.

Usage

scraping_games_euro(competition, nums, year, verbose = TRUE,
                    r_user = "guillermo.vinue@uv.es")

Value

A data frame with the player game finder data.

Arguments

competition

String. Options are "Euroleague" and "Eurocup".

nums

Numbers corresponding to the website from which scraping.

year

Year when the season starts. 2017 refers to 2017-2018 and so on.

verbose

Should R report information on progress? Default TRUE.

r_user

Email 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

Details

See the examples in get_games_rosters to see the game numbers to scrape in each season.

See Also

do_scraping_games

Examples

Run this code
if (FALSE) {
# Not needed to scrape every time the package is checked, built and installed.
# It takes 15 seconds.
df1 <- do_scraping_games(competition = "Euroleague", nums = 1:2, 
                         year = "2017", verbose = TRUE, r_user = 
                         "guillermo.vinue@uv.es")
}

Run the code above in your browser using DataLab