sec-edgar icon indicating copy to clipboard operation
sec-edgar copied to clipboard

ClientResponseError: 404, message='Not Found', url=URL('https://www.sec.gov/Archives/edgar/data/920448/0001562762-20-000015.txt')

Open MayZ7 opened this issue 2 years ago • 1 comments

I had an 404 error by using the code below. Any help on how to fix it?

import nest_asyncio
nest_asyncio.apply()

from datetime import date
from secedgar import filings
from secedgar.client import NetworkClient
client = NetworkClient("XXX", batch_size=1, backoff_factor=1000, rate_limit=5, retry_count=100)

# limit which quarterly filings to use
# saves only 8k filings from quarter
limit_to = lambda f: f.form_type.lower() in ("8-k")
quarterly_filings_limited = filings(start_date=date(2020, 1, 1),
                                    end_date=date(2020, 1, 31),
                                    user_agent="",
                                    entry_filter=limit_to,
                                    client=client)
quarterly_filings_limited.save("")

MayZ7 avatar Oct 03 '23 21:10 MayZ7

This should be fixed with the most recent alpha release. Can you confirm?

pip install secedgar==0.6.0a0

jackmoody11 avatar Feb 22 '25 03:02 jackmoody11