getFilingsHTML
retrieves complete EDGAR filings and store them in
HTML format for view.
getFilingsHTML(cik.no, form.type, filing.year, quarter)
Function saves EDGAR filings in HTML format and returns filing information in dataframe format.
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.
character vector containing form type to be downloaded. form.type = 'ALL' if need to download all forms.
vector of four digit numeric year
vector of one digit quarter integer number. By deault, it is kept as c(1 ,2, 3, 4).
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.