INNER CODE UNIT · Python
download_indices
lefterisloukas/edgar-crawler · download_filings.py:226
def download_indices(
start_year: int,
end_year: int,
quarters: List[str],
skip_present_indices: bool,
indices_folder: str,
user_agent: str,
) -> None:
"""
Downloads EDGAR Index files for the specified years and quarters.
Args:
start_year (int): The first year of the indices to be downloaded.
end_year (int): The last year of the indices to be downloaded.
quarters (List[str]): A list of quarters (in the format 'Q1', 'Q2', etc.) for which the indices will be downloaded.
skip_present_indices (bool): If True, the function will skip downloading indices that are already present in the directory.
indices_folder (str): Directory where the indices will be saved.
user_agent (str): The User-Agent string that will be declared to SEC EDGAR.