edgar (version 2.0.7)

getFilingsHTML: Get HTML view of EDGAR filings

Description

getFilingsHTML retrieves complete EDGAR filings and store them in HTML format for view.

Usage

getFilingsHTML(cik.no, form.type, filing.year, quarter)

Value

Function saves EDGAR filings in HTML format and returns filing information in dataframe format.

Arguments

cik.no

vector of CIK number of firms in integer format. Suppress leading zeroes from CIKs. Keep cik.no = 'ALL' if needs to download for all CIKs.

form.type

character vector containing form type to be downloaded. form.type = 'ALL' if need to download all forms.

filing.year

vector of four digit numeric year

quarter

vector of one digit quarter integer number. By deault, it is kept as c(1 ,2, 3, 4).

Details

getFilingsHTML function takes CIK(s), form type(s), filing year(s), and quarter of the filing as input. The function imports edgar filings downloaded via getFilings function; otherwise, it downloads the filings which are not already been downloaded. It then reads the downloaded filings, scraps filing text excluding exhibits, and saves the filing contents in 'edgar_FilingsHTML' directory in HTML format. The new directory 'edgar_FilingsHTML' will be automatically created by this function. User must follow the US SEC's fair access policy, i.e. download only what you need and limit your request rates, see https://www.sec.gov/os/accessing-edgar-data.