View source: R/scrape_key_fig.R
scrape_key_fig | R Documentation |
Scrape Key Figures from gurufocus.com
Main internal 'quant'-function for scraping stock key figures from gurufocus.com
scrape_key_fig(df, url, pfx, xpath_txt, xpath_tbl)
df |
data.frame. Data frame with a column 'symbol' containing at least one valid stock ticker symbol. |
url |
String. The Uniform Resource Locator of the resource of interest. |
pfx |
String. Prefix for column names of scraped data sets. |
xpath_txt |
String. The XML path to a text element of interest. |
xpath_tbl |
String. The XML path to a table element of interest. |
The input data frame supplemented by a company's respective key figure value of the last five fiscal years plus current years TTM.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.