Here is an example notebook:
Scrape the text from “Section” and “Text” cells in the notebook:
Out[1]=1
Preserve the cell grouping structure in the notebook by specifying the rule “FlattenCellGroups”False:
In[2]:=2
✖
Out[2]=2
- NotebookImport can import from notebook files or open notebooks.