What I tried: I could save a 10-K XBRL file in text format and read line by line to extract various sections. Requirement: I want to separate text from tables from 10-K. Problem: For this I need to use the html and it has complex structure. And extracting text and tables seems complex with beautifulsoup/xml etc. I tried various python packages but none of them meet the requirement of extracting tables and text separately. Question: How to extract text and tables between two s separately? [ Continue reading...