Skip to main content
Project Gutenberg는 60,000권 이상의 무료 전자책을 제공하는 온라인 도서관입니다.
이 가이드는 Gutenberg에서 데이터를 로드하는 방법을 보여줍니다.
from langchain_community.document_loaders import GutenbergLoader
loader = GutenbergLoader("https://www.gutenberg.org/cache/epub/69972/pg69972.txt")
data = loader.load()
data[0].page_content[:300]
'The Project Gutenberg eBook of The changed brides, by Emma Dorothy\r\nEliza Nevitte Southworth\r\n\r\nThis eBook is for the use of anyone anywhere in the United States and\r\nmost other parts of the world at no cost and with almost no restrictions\r\nwhatsoever. You may copy it, give it away or re-use'
data[0].metadata
{'source': 'https://www.gutenberg.org/cache/epub/69972/pg69972.txt'}

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I