0

我正在尝试使用 sec-api 模块中的 ExtractorApi 从 10-Q 报告中提取特定部分。该模块适用于 10-K,但在 10-Q 的某些部分会失败。例如,如果我想从 10-Q 中提取第 3 项,以下代码可以完美运行:

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)

但是当我尝试提取项目 1A 时。风险因素,下面的代码返回“未定义”:

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)

是否有一种解决方法可以从 10-Q 文件中提取这些部分?

谢谢

4

0 回答 0