{"library":"sec-parser","title":"sec-parser","description":"Parse SEC EDGAR HTML documents into a tree of elements that correspond to the visual structure of the document. Version 0.58.1, active development.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install sec-parser"],"cli":null},"imports":["from sec_parser import SECParser","from sec_parser.semantic_elements import SemanticElement"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from sec_parser import SECParser\nfrom sec_parser.semantic_elements import TextElement\n\nhtml = \"<html><body><p>Revenue: $100</p></body></html>\"\nparser = SECParser()\ntree = parser.parse(html)\n# Print top-level elements\nfor element in tree:\n    if isinstance(element, TextElement):\n        print(element.text)","lang":"python","description":"Parse SEC EDGAR HTML into a tree of semantic elements, then iterate over them.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}