def get_10k_from_cik(cik_ticker_list, year): for cik, ticker in cik_ticker_list: print(ticker) my_filings = Filing(cik, filing_type=FilingType.FILING_10K, count=2) my_filings.save('data/SEC/10-k/' + ticker + "/") remove_extra_data('data/SEC/10-k/' + ticker, "10-k")
def test_filing_save_single_cik(self, single_valid_cik, tmp_data_directory): f = Filing(single_valid_cik, FilingType.FILING_10Q, count=3) f.save(tmp_data_directory)
from SECEdgar.filings import Filing cik = '0000712515' filing = Filing(cik=cik, filing_type='10-q', count=15) filing.save('data')
def test_filing_save_multiple_ciks(self, multiple_valid_ciks, tmp_data_directory): f = Filing(multiple_valid_ciks, FilingType.FILING_10Q, count=3) f.save(tmp_data_directory)