Skip to main content

corpcrawl

# About This is a python scraper for the Securities and Exchange Commission EDGAR database. It looks at the Form 10k filings that publicly held corporations are required to file with the SEC. It then attempts to extract the subsidiary relationships from the 10k exhibit 21.1.

Corpcrawl is a storage agnostic scraper, so you’ll need to implement your own storage scheme.

# Installation You can get the package from PyPi through Pip.

pip install corpcrawl

From a python console you can try

import corpcrawl

If it works, then you can get started

# How to use

## Running it First import the required pieces

from corpcrawl.crawler import CorpCrawl from corpcrawl.backend import Backend

def main()

my_backend = MyBackend() crawler = CorpCrawl(cache_path = ‘/an/absolute/path/to/some/dir’, backend = my_backend) c.crawl(years = [2011, 2012], quarters = [1, 2, 3, 4])

class MyBackend(Backend):

def get_company(self, name):

pass

def add_company(self, comp):

print “Adding %s” % str(comp)

This is about as simple of a backend as can be. This code will crawl the filings and print out the name of each company and subsidiary that it finds for all quarters of years 2011 and 2012. Obviously you will want to hook it up to a database or something.

# Notes The SEC data is very unstructured. As such, there are a lot of errors. This is version 0.0.1, so instead of implementing your own methods to massage the data that it returns, it would be better if you could contribute so make the core parser better.

Metadata

Release files for corpcrawl 0.0.37

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for corpcrawl 0.0.37
File Size Uploaded Provenance Actions
corpcrawl-0.0.37.tar.gz 16.6 kB Without provenance Details for corpcrawl-0.0.37.tar.gz

Release files / corpcrawl-0.0.37.tar.gz

Download URL corpcrawl-0.0.37.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c29bca0e249d24286f01dd7630eabe953b4498615a6b9de26c2de563d7803214
BLAKE2b-256 checksum
How to use checksums
1b112d93c6021fc0bd1bcc54b08fb80b304299057a12e554cfff1d9316274dff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for corpcrawl 0.0.37

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page