MHTML은 이메일과 아카이브된 웹페이지 모두에 사용됩니다. MHT라고도 하는 MHTML은 MIME HTML의 약자로, 전체 웹페이지가 아카이브된 단일 파일입니다. 웹페이지를 MHTML 형식으로 저장하면 이 파일 확장자에는 HTML 코드, 이미지, 오디오 파일, 플래시 애니메이션 등이 포함됩니다.
Copy
from langchain_community.document_loaders import MHTMLLoader
Copy
# Create a new loader object for the MHTML fileloader = MHTMLLoader( file_path="../../../../../../tests/integration_tests/examples/example.mht")# Load the document from the filedocuments = loader.load()# Print the documents to see the resultsfor doc in documents: print(doc)