Skip to content

Instantly share code, notes, and snippets.

View madewitt's full-sized avatar

Martin DeWitt madewitt

View GitHub Profile
@madewitt
madewitt / get_edgar_index_files.py
Last active May 26, 2023 01:27
Python script to get index (.idx) files from the SEC's EDGAR database and save them to text files in a local directory.
import requests
import os
import time
# List of years to be searched
years = [2000 + x for x in range(10,18)]
# List of quarters to be searched
quarters = ['QTR1', 'QTR2', 'QTR3', 'QTR4']