nansen-web-fetcher

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Web Fetch

Web Fetch

Fetch and analyze content from one or more URLs using Gemini 2.5 Flash with URL context.
bash
nansen web fetch https://nansen.ai --question "What products does Nansen offer?"
nansen web fetch --url https://example.com --url https://other.com --question "Compare these two sites"
nansen web fetch https://docs.uniswap.org/contracts/v4/overview --question "What changed in v4?"
Positional args and
--url
flags can be combined — all become URLs to fetch.
FlagValuesDefaultPurpose
--url
URLURL to fetch (repeatable for multiple URLs, up to 20)
--question
stringrequiredQuestion to answer about the URL content
--pretty
flagoffHuman-readable JSON
Returns:
  • analysis
    — AI-generated answer to your question
  • retrieved_urls
    — URLs successfully fetched
  • failed_urls
    — URLs that could not be retrieved
Tip: Combine with
web search
— search first to find relevant URLs, then fetch to get full content.
bash
undefined
借助Gemini 2.5 Flash并结合URL上下文,抓取并分析一个或多个URL的内容。
bash
nansen web fetch https://nansen.ai --question "What products does Nansen offer?"
nansen web fetch --url https://example.com --url https://other.com --question "Compare these two sites"
nansen web fetch https://docs.uniswap.org/contracts/v4/overview --question "What changed in v4?"
位置参数和
--url
标志可以结合使用——所有指定的内容都会成为待抓取的URL。
标志取值默认值用途
--url
URL待抓取的URL(可重复指定多个URL,最多20个)
--question
字符串必填关于URL内容的待回答问题
--pretty
标志关闭生成人类易读的JSON格式
返回内容:
  • analysis
    — AI生成的问题答案
  • retrieved_urls
    — 成功抓取的URL列表
  • failed_urls
    — 无法抓取的URL列表
提示:
web search
搭配使用——先搜索找到相关URL,再通过fetch获取完整内容进行分析。
bash
undefined

Find and analyze in two steps

分两步完成查找与分析

nansen web search "uniswap v4 launch" --num-results 3 --fields link nansen web fetch https://blog.uniswap.org/... --question "What are the key changes?"

**Note:** 30s timeout. Paywalled or bot-blocked pages may appear in `failed_urls`.
nansen web search "uniswap v4 launch" --num-results 3 --fields link nansen web fetch https://blog.uniswap.org/... --question "What are the key changes?"

**注意:** 超时时间为30秒。付费墙或被机器人拦截的页面可能会出现在`failed_urls`中。