R/get_form_entry_ids.R

#' Get Google Form Entry Ids From Scrape
#'
#' Get Google Form Entry Ids From Scrape
#'
#' @param scrape HTML Output from Scraping Google Form
#' @export
#' @examples
#' \dontrun{
#' url %>% get_form() %>% get_form_entry_ids() -> entries
#' }
get_form_entry_ids <- function (scrape) {
    field_names <- names(rvest::html_form(scrape)[[1]][["fields"]])
    unique(field_names[grepl("entry.", field_names)])
}

Try the googleformr package in your browser

Any scripts or data that you put into this service are public.

googleformr documentation built on May 2, 2019, 11:10 a.m.