scrape_onepage: Web Scraping of Stock Price Data

Description Usage Arguments Value

View source: R/scrape_onefirm.r

Description

It is a function to scrape stock price data on a specific page of a certain brand from Yahoo! Finance. This function is the backbone of this package, and other functions are wrapper functions for this function.

Usage

1
scrape_onepage(code, start_date, end_date, datatype, page)

Arguments

code

numeric. Specify a brand code

start_date

numeric. Specify the start date of the stock price data you want to acquire in the format of yyyymmdd.

end_date

numeric. Specify the end date of the stock price data you want to acquire in the format of yyyymmdd.

datatype

character. Specify the type of stock price data. If datatype = "d", get daily data. If datatype = "w", get weekly data. If 'datatype = "m", get monthly data.

page

numeric. Specify the page number of the stock price data you want to acquire.

Value

A tibble data containing stock price data


KatoPachi/YahooFinance documentation built on Feb. 9, 2022, 3:22 p.m.