/SEC_Edgar_scraper

Download all kinds of SEC filings.

Primary LanguagePython

SEC_Edgar_scraper

This scraper only works on Python 2.

Download all kinds of SEC filings.

This scraper contains two parts:

index_scraper.py: downloads SEC index files, which are used for search SEC filings.

file_scraper.py: downloads SEC filings with type specified by users.

Third party module

You need to the module python-edgar to get the index_scraper.py to work.

Installation:

pip install python-edgar

Usage

For first time users, there are two steps, downloading the index files and the type of files you are interested in. For users who have downloaded index files, check Step 2.

Step 1: download index files.

In terminal, run the following command


python index_scraper.py -i <idx_path> -s <start_year> -e <end_year>

For example, the following command downloads all index files (quarterly updated) from year 2013 to 2015, and saves them in directory /home/usr/index by year.


python index_scraper.py -i /home/usr/index/ -s 2013 -e 2015

Step 2: download user specified files

In terminal, run the following command


python file_scraper.py -i <idx_path> -f <file_path> -s <start_year> -e <end_year> -t <file_type>

For example, the following command downloads all 10-K files from year 2013 to 2015, and saves them in directory /home/user/file by year.


python file_scraper.py -i /home/usr/index/ -f /home/usr/file/ -s 2013 -e 2015 -t 10-K