A Python package for parsing SEC data with XML and web scraping tools
Project description
sec_eagle
sec_eagle is a Python package for fetching and parsing SEC (Securities and Exchange Commission) filings. It leverages web scraping and XML parsing to help analysts and developers extract structured financial data.
🔍 Features
- Fetch SEC filing data using Requests
- Export data to Pandas DataFrames
- Utilities for identifying key financial metrics
- Any Inline Fact with a tag is scrapable
🚀 Installation
pip install sec_eagle
## 📦 Example Usage
```python
from sec_eagle import FileGather, SecCompany
import pandas as pd
# Initialize FileGather to search for filings
email = "your.email@example.com"
filings = FileGather(email=email, return_type="df")
# Specify the tickers and filing types
tickers = ["AAPL", "AMZN", "NFLX"]
filing_types = ["10-K", "10-Q", "20-F", "40-F"]
urls = filings.company_file(filing_types, tickers, "ticker")
# Tags to extract from XML filings
data_tags = ["dei:EntityCommonStockSharesOutstanding","dei:SecurityExchangeName"] # example tags
data = []
# Loop through filings and collect parsed data
for url in urls:
company = SecCompany(url=url, email=email, return_type="df")
xml_data = company.xml_parser(data_tags)
data.append(xml_data)
# Combine all company data into a single DataFrame
df = pd.concat(data).reset_index(drop=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sec_eagle-0.1.1.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sec_eagle-0.1.1.tar.gz.
File metadata
- Download URL: sec_eagle-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
579c69a4bbaeb9dfe4880517701da8f4c37022be1f8460637235e82729c39051
|
|
| MD5 |
a476290db493744c9666123d4bc22420
|
|
| BLAKE2b-256 |
13a54d90b35eb6cc45fa3ffea50f80396cc5ff579976acc52a6ba27fdf0e34e8
|
File details
Details for the file sec_eagle-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sec_eagle-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e8445001484970120b8446a3679914ce4709471690b82de8239f82644faa9ec
|
|
| MD5 |
09122b90221ab298d421ba078b2ed721
|
|
| BLAKE2b-256 |
94e49e1e74690a3edc28a37f54115d7fdb115a935d2d0d1161fd79c8756615e7
|