I am trying to extract specific sections from the 10-Q report using ExtractorApi from sec-api module. The module works for 10-K, however, it fails with certain sections for the 10-Q. For example, if I want to extract item 3 from 10-Q, the following code works perfectly:
from sec_api import ExtractorApi
extractorApi = ExtractorApi("YOUR API KEY") #Replace this with own API key
# 10-Q filing
filing_url = "https://www.sec.gov/Archives/edgar/data/789019/000156459021002316/msft-10q_20201231.htm"
# get the standardized and cleaned text of section
section_text = extractorApi.get_section(filing_url, "3", "text")
print(section_text)
But when I try to extract Item 1A. Risk Factors, the code below returns 'undefined':
from sec_api import ExtractorApi
extractorApi = ExtractorApi("YOUR API KEY") #Replace this with own API key
# 10-Q filing
filing_url = "https://www.sec.gov/Archives/edgar/data/789019/000156459021002316/msft-10q_20201231.htm"
# get the standardized and cleaned text of section
section_text = extractorApi.get_section(filing_url, "21A", "text") #Using 21A from the documentation of sec-api
print(section_text)
Is there a workaround to extract these sections from 10-Q filings?