Skip to content

Downloading specific filings #628

@GilletClement

Description

@GilletClement

Hello

From my understanding, the common practice to download filings is:

filings = get_filings(form="8-K")
download_filings(filings=filings)

However, the available filters are limited. I would like to download only 8-K filings containing specific items.

What I’m trying to do

period = range(2006, 2026)
set_of_items = set(['Item 2.05', 'Item 7.01', 'Item 8.01'])

for year_int in period:
    filings_8k = get_filings(form="8-K", year=year_int)
    for j in range(0, len(filings_8k)):
        eight_k = filings_8k[j].obj()
        items = eight_k.items
        if items and not set_of_items.isdisjoint(items):
            download_filings(filings_8k[j])

Error
download_filings(filings_8k[j])

Traceback (most recent call last):

  File ".../edgar/storage.py", line 317, in download_filings
    start_date_tm, end_date_tm, is_range = extract_dates(filing_date)

  File ".../edgar/dates.py", line 38, in extract_dates
    has_colon = ':' in date_str

TypeError: argument of type 'Filing' is not a container or iterable

So:

  • Is it possible to build an iterable filings object similar to the one returned by get_filings?
  • Is there a way to download a single filing?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions