mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00

**Executive Summary** Eyeballing or saving html in a Table element (in the `metadata.text_as_html` field) takes some manual effort. This script provides a quick way to do so given an unstructured .json file that adheres to the usual schema (i.e., that's returned by the Unstructured API). **Testing Instructions** Get some unstructured output that includes a table. E.g. [124_PDFsam_Basel III - Finalising post-crisis reforms.pdf](https://github.com/Unstructured-IO/unstructured/files/13407404/124_PDFsam_Basel.III.-.Finalising.post-crisis.reforms.pdf) ``` ./unstructured-get-json.sh --tables --hi-res \ 124_PDFsam_Basel\ III\ -\ Finalising\ post-crisis\ reforms.pdf ```` Then use this the following script to view the structure and content of the tables: (note that output file was copied to the clipboard from prior command): ``` ./u-tables-inspect.sh \ "<snip>/tmp/unst-outputs/124_PDFsam_Basel III - Finalising post-crisis reforms.pdf-hi-res.json" ```