get_text | R Documentation |
Get HTML text element
get_text(url, xpath)
url |
String. The Uniform Resource Locator of the resource of interest. |
xpath |
String. The XML path to an element of interest. |
The string to be found under the given XML path and URL.
get_text(url = 'https://www.gurufocus.com/stock/AAPL/summary', xpath = '//*[@id="stock-header"]/div/div[1]/div[1]/div[2]/div/h1/span[1]')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.