scrape_key_fig: Scrape Key Figures from gurufocus.com Main internal...

View source: R/scrape_key_fig.R

scrape_key_figR Documentation

Scrape Key Figures from gurufocus.com Main internal 'quant'-function for scraping stock key figures from gurufocus.com

Description

Scrape Key Figures from gurufocus.com

Main internal 'quant'-function for scraping stock key figures from gurufocus.com

Usage

scrape_key_fig(df, url, pfx, xpath_txt, xpath_tbl)

Arguments

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.

Value

The input data frame supplemented by a company's respective key figure value of the last five fiscal years plus current years TTM.


OliverHennhoefer/quant documentation built on Sept. 18, 2022, 5:50 p.m.