# load packages ----------------------------------------------------------------
library(tidyverse)
library(rvest)
library(usethis)
# scrape data ------------------------------------------------------------------
animals_page <- read_html("https://a-z-animals.com/animals/")
animals <- animals_page %>%
html_nodes(".letter b") %>%
html_text()
# save data --------------------------------------------------------------------
use_data(animals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.