Skip to content
Mac edited this page Oct 6, 2022 · 1 revision

Welcome to the pyedgar wiki!

Using pyedgar on WRDS SEC Analytics:

pyedgar.conf:

[Paths]
CACHE_FEED = True
FILING_ROOT=/wrds/sec/warchives/
FILING_PATH_FORMAT={cik_str[:6]}/{cik}/{accession}.txt

[Downloader]

[Index]

Then in python:

import os
import sys
# put location to pyedgar here, I downloaded it on another computer, transfered it over, then extracted it into ~/source
sys.path.append(os.path.expanduser("~/source/pyedgar")) # put pyedgar here, I downloaded it, then extracted it into ~/source

import pyedgar
filing = pyedgar.Filing(cik=1006045, accession="000119312522247613", web_fallback=False)
print(filing.headers)
Clone this wiki locally