R/yelp_get_id.R

Defines functions yelp_get_id

#' @param html html
#'
#' @keywords internal
#'
#' @import rvest
#'
yelp_get_id <- function(html) {

  id <- html          %>%
    rvest::html_elements(xpath = '//*[@class="fs-block css-m6anxm"]')  %>%
    rvest::html_text() %>%
    .[-1]
}
PeerChristensen/reviewscraper documentation built on Dec. 18, 2021, 6:46 a.m.