From 5dddbe438d8898531df06485f9de45f5578d8615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elijas=20Dap=C5=A1auskas?= <4084885+Elijas@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:52:46 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 9cc3bb4..dcd3c17 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,13 @@ print_first_n_lines(demo_output, n=7) ... + +> [!TIP] +> +> **FAQ: How do I get the text of each element (or all of the document)? How do I get all of the text in a specific section?** +> +> Use the `element.text` field. Check out [this notebook](https://github.com/Elijas/sec-parser-exploration/blob/main/00_mdna.ipynb) for a full example. + We can also construct a semantic tree to allow for easy filtering by parent sections: ```python