Skip to main content
Hacker News (HN로도 알려짐)는 Y Combinator가 운영하는 소셜 뉴스 웹사이트로, 컴퓨터 과학 및 기업가 정신에 중점을 둔 콘텐츠를 다룹니다. 일반적으로 Hacker News에 제출된 콘텐츠는 stories 또는 asks로 알려져 있으며, 댓글을 통해 점수를 받습니다.
이 노트북은 Hacker News에서 페이지 데이터를 로드하는 방법을 다룹니다.
from langchain_community.document_loaders import HNLoader
loader = HNLoader("https://news.ycombinator.com/item?id=34817881")
data = loader.load()
data[0].page_content[:300]
"delta-io/delta-rs\nDelta Lake 2.0 and the rise of the Rust connector\n\ncomments | tweet\n\n02/16/2023\nAlexander Sorokoumov\nDelta Lake is an open-source project that enables building a Lakehouse architecture on top of data lakes. Delta Lake provides ACID transactions, scalable metadata handling, and unifies streaming and batch data processing on top of existing data l"
data[0].metadata
{'source': 'https://news.ycombinator.com/item?id=34817881',
 'title': 'Delta Lake 2.0 and the rise of the Rust connector'}

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