get_table: Get HTML table element

View source: R/get_table.R

get_tableR Documentation

Get HTML table element

Description

Get HTML table element

Usage

get_table(url, xpath, name, raw = FALSE)

Arguments

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.

Value

The table to be found under the given XML path and URL.

Examples

get_table(name = 'test',
         url = 'https://www.gurufocus.com/term/cash_per_share/AAPL/',
         xpath = '//*[@id="target_def_historical_data"]/div[2]/div/table')


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