langchain/tests/integration_tests/examples
Pau Ramon Revilla 87802c86d9
Added a MHTML document loader (#6311)
MHTML is a very interesting format since it's used both for emails but
also for archived webpages. Some scraping projects want to store pages
in disk to process them later, mhtml is perfect for that use case.

This is heavily inspired from the beautifulsoup html loader, but
extracting the html part from the mhtml file.

---------

Co-authored-by: rlm <pexpresss31@gmail.com>
2023-06-25 13:12:08 -07:00
..
default-encoding.py Add PythonLoader which auto-detects encoding of Python files (#3311) 2023-04-21 10:47:57 -07:00
example-utf8.html
example.html
example.json JSON loader (#4067) 2023-05-05 14:48:13 -07:00
example.mht Added a MHTML document loader (#6311) 2023-06-25 13:12:08 -07:00
facebook_chat.json Refactor TelegramChatLoader and FacebookChatLoader classes and add tests (#3863) 2023-05-03 15:59:19 -07:00
factbook.xml feat: Add UnstructuredXMLLoader for .xml files (#5955) 2023-06-10 16:24:42 -07:00
fake.odt feat: add loader for open office odt files (#4405) 2023-05-10 01:37:17 -07:00
hello.msg
hello.pdf
layout-parser-paper.pdf
non-utf8-encoding.py Add PythonLoader which auto-detects encoding of Python files (#3311) 2023-04-21 10:47:57 -07:00
README.rst feat: Add UnstructuredRSTLoader (#6594) 2023-06-25 12:41:57 -07:00
sitemap.xml Harrison/sitemap local (#4704) 2023-05-14 22:04:38 -07:00
slack_export.zip
stanley-cups.csv feat: Add UnstructuredCSVLoader for CSV files (#5844) 2023-06-07 19:18:01 -07:00
stanley-cups.xlsx feat: add UnstructuredExcelLoader for .xlsx and .xls files (#5617) 2023-06-03 12:44:12 -07:00
whatsapp_chat.txt Fix WhatsAppChatLoader : Enable parsing additional formats (#6663) 2023-06-25 12:08:43 -07:00

Example Docs
------------

The sample docs directory contains the following files:

-  ``example-10k.html`` - A 10-K SEC filing in HTML format
-  ``layout-parser-paper.pdf`` - A PDF copy of the layout parser paper
-  ``factbook.xml``/``factbook.xsl`` - Example XML/XLS files that you
   can use to test stylesheets

These documents can be used to test out the parsers in the library. In
addition, here are instructions for pulling in some sample docs that are
too big to store in the repo.

XBRL 10-K
^^^^^^^^^

You can get an example 10-K in inline XBRL format using the following
``curl``. Note, you need to have the user agent set in the header or the
SEC site will reject your request.

.. code:: bash

   curl -O \
     -A '${organization} ${email}'
     https://www.sec.gov/Archives/edgar/data/311094/000117184321001344/0001171843-21-001344.txt

You can parse this document using the HTML parser.