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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sec-edgar-downloader-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ee66e4f956c4dabaefbc684409252a387307725af7257bb54784be312065071 |
|
MD5 | f6545c1eb801a4f048664d64b6f81bd2 |
|
BLAKE2b-256 | da3236e8aee0f385505abad7639b73189a05c6ad0c62b039c199d356667d1718 |
Close
Hashes for sec_edgar_downloader-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf0924bf86acc02ae0f7d553456295c06a5c35989cf921662ea5b30eb928a89d |
|
MD5 | 057361bbd815de0e3eb5aa6c6bfb4aa0 |
|
BLAKE2b-256 | 3bc6c94550fbba5a913d95414592dbe3cb624965070c0df0c0aa53f83f81542f |