Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TenK function could not extract content of some filings #107

Open
grtax1gh opened this issue Sep 12, 2024 · 1 comment
Open

TenK function could not extract content of some filings #107

grtax1gh opened this issue Sep 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@grtax1gh
Copy link

Hello,

When I was using TenK to extract Item 1, 1A, and 7, the function seemingly could not extract the data for some filings.
For example, for cik 1000228 in 2021, 2023, and 2024 (filing year), although the filings' content is available on the SEC (2021, 2023, 2024), the dataframe showed only the item names without content. For 2022 filing, there was no such issue.
Another example can be found for cik 350852 in 2018 and 2019.

Results:
Screen Shot 2024-09-12 at 12 07 25 PM
Screen Shot 2024-09-12 at 12 08 16 PM

Code:

item1_1a_texts = []
for n, filing in enumerate(filtered_filings):
    url = filing.document.url
    cik = filing.cik
    filing_date = filing.header.filing_date
    
    TenK = filing.obj()
    
    try:
        item1_1a_text = TenK["Item 1"] + "\n" + TenK["Item 1A"] + "\n" + TenK["Item 7"]
    except: 
        item1_1a_text = None
    
    item1_1a_texts.append({
        'cik': cik,
        'filing_date': str(filing_date),
        'item1_1a_text': item1_1a_text,
    })
@dgunning
Copy link
Owner

Sorry about this, I've been very busy. Taking a look at this now

@dgunning dgunning added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants