Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
OurBuilding Ambient Agents with LangGraph course is now available on LangChain Academy!
Open In ColabOpen on GitHub

Hacker News

Hacker News (sometimes abbreviated asHN) is a social news website focusing on computer science and entrepreneurship. It is run by the investment fund and startup incubatorY Combinator. In general, content that can be submitted is defined as "anything that gratifies one's intellectual curiosity."

This notebook covers how to pull page data and comments fromHacker News

from langchain_community.document_loadersimport HNLoader
API Reference: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?'}

Related


[8]ページ先頭

©2009-2025 Movatter.jp