Hacker News (때때로 HN으로 약칭됨)는 컴퓨터 과학과 창업에 초점을 맞춘 소셜 뉴스 웹사이트입니다. 투자 펀드이자 스타트업 인큐베이터인 Y Combinator에서 운영합니다. 일반적으로 제출할 수 있는 콘텐츠는 “지적 호기심을 충족시키는 모든 것”으로 정의됩니다.
이 노트북은 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_p_delta_x 73 days ago  \n             | next [–] \n\nAstrophysical and cosmological simulations are often insightful. They're also very cross-disciplinary; besides the obvious astrophysics, there's networking and sysadmin, parallel computing and algorithm theory (so that the simulation programs a"
data[0].metadata
{'source': 'https://news.ycombinator.com/item?id=34817881',
 'title': 'What Lights the Universe’s Standard Candles?'}

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