Description Usage Arguments Value Examples
View source: R/attribute_scrap.R
This function is used to scrape attributes from HTML elements
1 | attribute_scrap(link, node, attr, askRobot = FALSE)
|
link |
the link of the web page to scrape |
node |
the HTML element to consider |
attr |
the attribute to scrape |
askRobot |
logical. Should the function ask the robots.txt if we're allowed or not to scrape the web page ? Default is FALSE. |
a character vector.
1 2 3 4 5 6 7 | # Extracting the web links within the World Bank research and publications page
link <- "https://ropensci.org/"
# scraping the class attributes' names from all the anchor
attribute_scrap(link = link, node = "a", attr = "class")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.