R/get_form_entry_ids.R

Defines functions get_form_entry_ids

Documented in get_form_entry_ids

#' 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 30, 2017, 2:38 a.m.