I have a vector with 602 URLs that starts like this:
links <- c("URL1.com", "URL2.com", "URL3.com)
Each URL links to a webpage.
Somewhere on each of the webpages is a year in the format YYYY
as in 2019
but it is not always in the same place.
There is only one year on each webpage and I want R to give me an output that provides the year on each webpage.
I have tried using rvest
but I presume I need to know the specific location on each webpage.
How can I successfully scrape the year from the webpages?