如何使用jina reader提取网页内容?

提问者:Rae 问题分类:人工智能
如何使用jina reader提取网页内容?
1 个回答
你以为我的心是不锈钢么
你以为我的心是不锈钢么
使用 r.jina.ai 提取单个网页内容,只需在目标 URL 前添加 https://r.jina.ai/  前缀即可。例如,提取维基百科关于人工智能的页面内容:
curl https://r.jina.ai/https://en.wikipedia.org/wiki/Artificial_intelligence
使用 s.jina.ai 进行网页搜索
curl https://s.jina.ai/Who%20will%20win%202024%20US%20presidential%20election%3F
使用流模式处理动态网页,对于动态加载的网页,可以使用流模式确保内容的完整性:
curl -H "Accept: text/event-stream" https://r.jina.ai/https://en.m.wikipedia.org/wiki/Main_Page
发布于:3周前 (04-07) IP属地:
我来回答