sec-edgar
sec-edgar copied to clipboard
ClientResponseError: 404, message='Not Found', url=URL('https://www.sec.gov/Archives/edgar/data/920448/0001562762-20-000015.txt')
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("")
This should be fixed with the most recent alpha release. Can you confirm?
pip install secedgar==0.6.0a0