Skip to content

Commit

Permalink
fixing example in tidy scrap
Browse files Browse the repository at this point in the history
  • Loading branch information
401118 committed Jul 15, 2024
1 parent 6cbf091 commit a9d15b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions R/tidy_scrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
#' @return a tidy data frame.
#' @examples \donttest{
#' # Extracting imdb movie titles and rating
#'
#' link <- "https://www.imdb.com/chart/top/"
#' my_nodes <- c(".titleColumn a", "strong")
#' names <- c("title", "rating")
#'
#' tidy_scrap(link, my_nodes, names)}
#'link <- "https://www.imdb.com/chart/top/"
#'my_nodes <- c("a > h3.ipc-title__text", "span.ratingGroup--imdb-rating")
#'names <- c("title", "rating")
#'tidy_scrap(link, my_nodes, names)
#' }
#'
#' @export
#' @importFrom rvest html_nodes html_text %>%
Expand Down

0 comments on commit a9d15b9

Please sign in to comment.