Skip to content

alex-fe/SEC-information-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SEC-information-tables

Requirements

This script needs BeautifulSoup and Pandas to run

$ pip install beautifulsoup4
$ pip install pandas

Running

The Behavior of the script is can be broken down into a few parts:

  1. First fetch the CIK data from the user parameters or from cik.csv
  2. Search the pickled SEC DataFrame based on parameters (start date, end date, position). If unable to find the date, query the SEC Edgar site, adding the pulled data to the pickle.
  3. If specified to return an html table (--html) and data found in parameters, an .html is created.

E.G for querying Forward Industries Inc

$ python program.py FORD --html

Full argument parameters listed below

$ python program.py -h
usage: program.py [-h] [-c CIK] [--html] [-p POSITION] [-s [Date]] [-e [Date]]
                  [--cikpath [Path]]
                  stock

positional arguments:
  stock                 Stock symbol e.g. AAL, AAPL

optional arguments:
  -h, --help            show this help message and exit
  -c CIK, --cik CIK     Company's CIK identifier
  --html                Return sql to html table.
  -p POSITION, --position POSITION
                        Restrict search by position e.g. CEO
  -s [Date], --startdate [Date]
                        Choose a start date in format YYYY-MM-DD. Default is
                        30 days prior.
  -e [Date], --enddate [Date]
                        Choose a start date in format YYYY-MM-DD. Default is
                        today.
  --cikpath [Path]      Path to cik.csv. Default location is
                        /.../.../.../.../.../cik.csv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages