get_table | R Documentation |
Get HTML table element
get_table(url, xpath, name, raw = FALSE)
url |
String. The Uniform Resource Locator of the resource of interest. |
xpath |
String. The XML path to an element of interest. |
name |
String. The prefix preceding every scraped output column. |
raw |
Logical. Controls whether 'gurufocus.com'-specific data processing shall be applied to the table. |
The table to be found under the given XML path and URL.
get_table(name = 'test', url = 'https://www.gurufocus.com/term/cash_per_share/AAPL/', xpath = '//*[@id="target_def_historical_data"]/div[2]/div/table')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.