Skip to main content

A Python package for scraping 13F filings from the SEC Edgar database.

Project description

Edgar13F Scraper

A Python package for scraping 13F filings from the SEC Edgar database.

Installation

To install this package, clone this repository, navigate to its directory, and then use pip:

git clone https://github.com/jackabrown21/Edgar13F.git
cd Edgar13F
pip install .

Duplicate the .env.example file, rename it to .env, and replace the dummy values with your actual values.

Usage

from Edgar13F import SecEdgarScraper

companies = {
    "FiduciaryManagementInc": 764532, # "Company": CIK Number
    "SoutheasternAssetManagement": 807985,
    ...
}

base_file_path = 'data/csvs' # Folder of CSVs with the specific companies with this specific information: Form Type, Form Description, Filing Date, Accession Number
data_path = 'data/raw/' # Folder where you would like the XMLs to be downloaded to

scraper = SecEdgarScraper(companies, base_file_path, data_path)
scraper.scrape()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Edgar13F-0.2.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

Edgar13F-0.2.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page