Hi,
I am noob in python so any help is welcome. I extracted 10q using edgar, got txt file, but have no idea how to get or where to start to get revenues, net income... from that txt file. Thx in advance.
Hi, could you post the contents of the txt file? Or upload it whole?
(May-27-2019, 01:10 PM)michalmonday Wrote: [ -> ]Hi, could you post the contents of the txt file? Or upload it whole?
I used this code below, but got no clue what to do with output i got, will go and learn further
import time
from SECEdgar.crawler import SecCrawler
def get_filings():
t1 = time.time()
seccrawler = SecCrawler() # create object
companyCode = 'AAPL' # company code for apple
cik = '0000320193' # cik code for apple
date = '20180101' # date from which filings should be downloaded
count = '1' # no of filings
seccrawler.filing_10Q(companyCode, cik, date, count)
seccrawler.filing_10K(companyCode, cik, date, count)
#seccrawler.filing_8K(companyCode, cik, date, count)
#seccrawler.filing_13F(companyCode, cik, date, count)
t2 = time.time()
print ("Total Time taken: {0}".format(t2-t1))
if __name__ == '__main__':
get_filings()
Without the input file, it is difficult to help.
Or a link to the input file.