Collect all opta available files for a specified season.

collect_f24(
  user,
  passwd,
  output_dir,
  season = NULL,
  match_id = NULL,
  matches_id = NULL,
  root_url = "http://omo.akamai.opta.net",
  store_f7 = TRUE,
  ...
)

Arguments

user

User to connect to the root_url account;

passwd

Password of the user to use.

output_dir

Output directory to write files to.

season

Season of the games to collect. If set, nor match_id nor matches_id are read.

match_id

Specific game id. Do not use with season set.

matches_id

Specific games ids. Do not use with season set. If set, will overwrite match_id.

root_url

The URL to collect the f24 file. By default it is set to http://omo.akamai.opta.net.

store_f7

Store as well corresponding F7 file. Default set to TRUE.

...

Additional arguments for the underlying functions.

Value

Save to severals .xml files the collected .xml files.

Examples

 
if (FALSE) {
# if you want all the available game of the season `season`
collect_f24(user="XX12345", passwd="mypasswd", season=2020)

# if you want the game of id `match_id`
collect_f24(user="XX12345", passwd="mypasswd", match_id="7890")

# if you want several games, use `matches_id` as
collect_f24(user="XX12345", passwd="mypasswd", match_id=c("7890", "7891", "7177"))

# if you need to specify the root url you can set
collect_f24(user="XX12345", passwd="mypasswd", season=2020, root_url="https://my_new_root_url")
}