Hi, I am trying to get the csv link from the following webpage
I tried the following
library(rvest)
library(stringr)
page <- read_html("https://www.apple.com/covid19/mobility")
url <- page %>%
html_nodes("a") %>% # find all links
html_attr("href") %>% # get the url
str_subset("\\.csv")
But this is returning the character(0). This page does have a csv file with download option.
Any help would be greatly appreciated.
Thanks.