powered by
This function is used to scrape web links from a website.
weblink_scrap(link, contain = NULL, case_sensitive = FALSE, askRobot = FALSE)
a character vector.
the link of the web page to scrape
filter the web links according to the character string provided.
logical. Should the contain argument be case sensitive ? defaults to FALSE
logical. Should the function ask the robots.txt if we're allowed or not to scrape the web page ? Default is FALSE.
# \donttest{ # Extracting the web links within the World Bank research and publications page link <- "https://www.worldbank.org/en/research" weblink_scrap(link) # }
Run the code above in your browser using DataLab