Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extracting 10-q,k
#1
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.
Reply
#2
Then begin with reading the tutorials:
https://python-forum.io/Forum-Tutorials
https://docs.python.org/3/library/re.html
Reply
#3
Hi, could you post the contents of the txt file? Or upload it whole?
Reply
#4
(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()
Reply
#5
Without the input file, it is difficult to help.
Reply
#6
Or a link to the input file.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020