Nothing
#' @importFrom rvest read_html html_elements html_text
#' @importFrom purrr keep
#' @importFrom stringr str_detect
.fotmob_extract_meta <- function() {
page <- "https://www.fotmob.com/" %>%
rvest::read_html()
page %>%
rvest::html_elements("script") %>%
rvest::html_text(trim = TRUE) %>%
purrr::keep(stringr::str_detect, "props")
}
#' @importFrom stringr str_extract
#' @importFrom purrr pluck
.fotmob_get_build_id <- function() {
meta <- .fotmob_extract_meta()
meta %>%
stringr::str_extract('(?<=\\"buildId\\"[:]).*(?=\\,\\"isFallback\\")') %>%
safely_from_json() %>%
pluck("result")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.