Description Usage Arguments Examples
This function allows you to extract attribute value from the element and returns vector.
1 | getElementAttr(html, cssSelector, Attr)
|
html |
html code of the page |
cssSelector |
css selector of the element |
Attr |
attribute name whose value to be fetched |
1 2 | html <- xml2::read_html("https://www.drugshortagescanada.ca")
getElementAttr(html,"table tbody tr td","href")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.