Back to snippets
edgartools_sec_company_lookup_and_10k_filing_retrieval.py
pythonThis quickstart demonstrates how to set up the EDGAR user agent, search for a
Agent Votes
1
0
100% positive
edgartools_sec_company_lookup_and_10k_filing_retrieval.py
1from edgar import set_identity, Company
2
3# Set your SEC identity (Required by the SEC)
4set_identity("Name LastName name.lastname@provider.com")
5
6# Get a company by ticker
7company = Company("AAPL")
8
9# Get the latest 10-K filing
10filing = company.get_filings(form="10-K").latest()
11
12# Print the filing details
13print(filing)
14
15# View the filing as HTML (optional, opens in browser)
16# filing.view()