Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extracting 10-q,k
#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


Messages In This Thread
Extracting 10-q,k - by Grga - May-27-2019, 07:18 AM
RE: Extracting 10-q,k - by heiner55 - May-27-2019, 07:42 AM
RE: Extracting 10-q,k - by michalmonday - May-27-2019, 01:10 PM
RE: Extracting 10-q,k - by Grga - May-27-2019, 07:01 PM
RE: Extracting 10-q,k - by heiner55 - May-28-2019, 03:31 AM
RE: Extracting 10-q,k - by heiner55 - May-28-2019, 04:43 AM

Forum Jump:

User Panel Messages

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