0

I'm trying to extract SEC filings in a certain date range with a certain key string, for several different companies.

Basically I'm trying to replicate the search in this link: SEC Edgar (https://www.sec.gov/edgar/search/#)

I installed the required libraries using pip and ran the below code, which gives me all the submissions in a dict format.

from sec_edgar_api import EdgarClient

edgar = EdgarClient(user_agent="<Sample Company Name> <Admin Contact>@<Sample Company Domain>")

# Sample CIK
# manual pagination handling
submissions = edgar.get_submissions(cik="104169", handle_pagination=False)

However, I'm unable to find the options for filtering by dates and key strings. It would be great if anyone could help me incorporate these options in my search query.

Deep_S
  • 21
  • 3
  • That page appears to use the endpoint `https://efts.sec.gov/LATEST/search-index?q=foobar&startdt=2018-08-21&enddt=2023-08-21`, which isn't part of their official API. – Nick ODell Aug 21 '23 at 21:46
  • Do you have to use EdgarClient? As it is a get request with params in the URL, you can simply user 'requests' package and parse the returned HTML. – AMK Aug 22 '23 at 13:43
  • Yes, unfortunately, I'm not able to extract the result links using the 'requests' package (get_text or get_url). – Deep_S Aug 24 '23 at 03:27

0 Answers0