This script utilizes the SEC EDGAR API to download HTML copies of SEC filings in an easy-to-use, compliantly polite, and incredibly effective script.
EDGAR FILING READ ME
THIS SCRIPT PROVIDES AN EASY TO USE PYTHON SCRIPT THAT DOWNLOADS SEC EDGAR API FILINGS (INC. BUT NOT LIMITED TO 10-K, 8-K, 10-Q, AND MORE) FOR ANY COMPANY SUBMITTING DOCUMENTS TO THE UNITED STATES SECURITY EXCHANGE COMMISSION. PLEASE REFER TO THEIR API DOCUMENTATION FOR FURTHER INFORMATION (https://www.sec.gov/about/developer-resources). THIS SCRIPT ACCESSES THE SEC EDGAR API UNDER USER-DEFINED CONTACT INFORMATION AND SAVES TO THE USER'S DESIRED LOCAL FOLDER PATH. THIS SCRIPT SHOULD NOT BE REDRISTRIBUTED, AND IS DESIGNED AS A TOOL FOR LOCAL MACHINES ONLY. PREREQUISITE LIBRARIES INCLUDE:
OS REQUESTS RE TIME
THESE LIBRARIES MUST BE INSTALLED INTO YOUR PYTHON ENVIRONMENT BEFORE USE. ALTERING THE SCRIPT - SPECIFICALLY ANYTHING THAT IS NOT ALIGNED WITH SEC EDGAR API'S DOCUMENTATION - MAY RESULT IN IP BANS OR SEC RECOURSE. PLEASE FAMILIARIZE YOURSELF WITH THE SEC DEVELOPER RESOURCES LOCATED IN THE LINK ABOVE.
//
THIS SCRIPT RUNS THROUGH A CONFIGURATION TABLE FOUND AT THE TOP OF THE SCRIPT.
{ TICKER = "ADD TICKER HERE" # e.g., "NVDA" FILE_TYPE = "" # e.g. "10-Q" for quarterly, "10-K" for annual filings; leave blank for any NUM_FILINGS = 1 # Number of most recent filings to retrieve USER_AGENT = "UPDATE USER INFO & CONTACT" # Contact info. REQUIRED by SEC DOWNLOAD_FOLDER = r"COPY PATH OF FOLDER" # destination folder for files
HEADERS = {"User-Agent": USER_AGENT} }
UPDATE THIS CONFIGURATION WITH YOUR DESIRED TICKER, DOCUMENT TYPE, # OF DOCUMENTS, CONTACT INFORMATION, AND SAVE INFORMATION. SAVE THE PYTHON FILE AND RUN. THE DESIRED DOCUMENT(S) WILL APPEAR IN YOUR SAVED FOLDER LOCATION SHORTLY WITH SAVE FORMAT AS "[TICKER][DOCUMENT TYPE][DATE(year/month/day)]"
if this is my license template can i update it in the future? Copyright © 2025 Systems Capital Inc.
Permission is hereby granted to any person obtaining a copy of this software (the “Software”) to use and modify the Software for personal, educational, or internal purposes, subject to the following conditions:
No Redistribution You may not distribute, publish, sublicense, or share the Software or any derivative works, in whole or in part, in any form.
No Commercial Use The Software may not be used, in whole or in part, for any commercial purpose, including but not limited to selling, licensing, hosting, or providing services using the Software.
No Warranty The Software is provided “as is,” without warranty of any kind, express or implied.
Any use not explicitly permitted above is prohibited.
License Version 1.1 — Updated 2025-12-09