scrape_ownership_fig: Get Key Figure from gurufocus.com

View source: R/scrape_ownership_fig.R

scrape_ownership_figR Documentation

Get Key Figure from gurufocus.com

Description

Function for fetching data from gurufocus.com.

Usage

scrape_ownership_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.