Skip to main content

Python package for downloading company filings (8-K, 10-K, 10-Q, 13F-NT, 13F-HR, SC 13G, SD)from the SEC EDGAR database.

Project description

sec_edgar_downloader

Build Status codecov image image image

Python package for downloading company filings from the SEC EDGAR database. Searches can be conducted either by stock ticker or Central Index Key (CIK). You can use the SEC CIK lookup tool if you cannot find an appropriate ticker. Supported company filings: 8-K, 10-K, 10-Q, 13F-NT, 13F-HR, SC 13G, SD. Learn more about the different types of SEC filings here.

Installation

Install and update this package using pip:

pip install -U sec_edgar_downloader

Example usage

from sec_edgar_downloader import Downloader

# Initialize a downloader instance.
# If no argument is passed to the constructor, the package
# will attempt to locate the user's downloads folder.
dl = Downloader("/path/to/valid/save/location")

# Get all 8-K filings for Apple (ticker: AAPL)
dl.get_8k_filings("AAPL")

# Get the past 5 8-K filings for Apple
dl.get_8k_filings("AAPL", 5)

# Get all 10-K filings for Microsoft (ticker: MSFT)
dl.get_10k_filings("MSFT")

# Get the latest 10-K filing for Microsoft
dl.get_10k_filings("MSFT", 1)

# Get all 10-Q filings for Visa (ticker: V)
dl.get_10q_filings("V")

# Get all 13F-NT filings for Vanguard Group (CIK: 0000102909)
dl.get_13f_nt_filings("0000102909")

# Get all 13F-HR filings for Vanguard Group
dl.get_13f_hr_filings("0000102909")

# Get all SC 13G filings for Apple
dl.get_sc_13g_filings("AAPL")

# Get all SD filings for Apple
dl.get_sd_filings("AAPL")

# Get all the latest filings (8-K, 10-K, 10-Q, 13F, SC 13G, SD), if available, for Apple
dl.get_all_available_filings("AAPL", 1)

# Get all the latest filings (8-K, 10-K, 10-Q, 13F, SC 13G, SD), if available,
# for a specified list of tickers and CIKs
identifiers = ["AAPL", "MSFT", "0000102909", "V", "FB"]
for id in identifiers:
    dl.get_all_available_filings(id, 1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sec_edgar_downloader-2.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sec_edgar_downloader-2.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file sec_edgar_downloader-2.0.0.tar.gz.

File metadata

  • Download URL: sec_edgar_downloader-2.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for sec_edgar_downloader-2.0.0.tar.gz
Algorithm Hash digest
SHA256 be7de8f0a76e1b87d2ec9a783c880358633d40ef4b2c037ba06e5e9f275b5744
MD5 c8fbebf2004178f44bff72ac0e44e1e2
BLAKE2b-256 dfd991da850d6f3faa7acfc88b7705a35444c35d1d03e2677991f2f5553abb17

See more details on using hashes here.

File details

Details for the file sec_edgar_downloader-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sec_edgar_downloader-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for sec_edgar_downloader-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 997e35d03457ab220e0862acd7db045ddac976309d62509126c5ab37a6ea7461
MD5 4d93e8cd967359fc6b478bdfa1772edf
BLAKE2b-256 0efab6144d59037f61583759f2ffdca7b4f474f6abb89e8bc2b9ec27233fc886

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page