WIP. Package to visualize sec filings. Best used in conjunction with SEC-Parsers.
Installation
pip install sec-parsers['all']
Quickstart
from sec_visualizers import visualizer
from sec_downloaders import SEC_Downloader
from sec_parsers import Filing
from lxml import etree
downloader = SEC_Downloader()
downloader.set_headers("John Doe", "[email protected]")
url = 'https://www.sec.gov/Archives/edgar/data/1318605/000095017022000796/tsla-20211231.htm'
download = downloader.download(url)
filing = Filing(download)
filing.parse(add_parsing_id=True)
html_string = etree.tostring(filing.html, pretty_print=True, method="html")
visualizer(filing.xml, html_string.decode('utf-8'))
TODO:
- make visualizer take Filing class
Features that will be added after next major SEC Parsers update
- Section Title highlighting
- Showing what text belongs to which header