Extracting 10-q,k - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Extracting 10-q,k (/thread-18679.html) |
Extracting 10-q,k - Grga - May-27-2019 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. RE: Extracting 10-q,k - heiner55 - May-27-2019 Then begin with reading the tutorials: https://python-forum.io/Forum-Tutorials https://docs.python.org/3/library/re.html RE: Extracting 10-q,k - michalmonday - May-27-2019 Hi, could you post the contents of the txt file? Or upload it whole? RE: Extracting 10-q,k - Grga - May-27-2019 (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() RE: Extracting 10-q,k - heiner55 - May-28-2019 Without the input file, it is difficult to help. RE: Extracting 10-q,k - heiner55 - May-28-2019 Or a link to the input file. |