nansen-ai/nansen-cli

nansen-web-fetcher

Fetch and analyze content from one or more URLs using AI (Gemini 2.5 Flash).

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

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
--urlURLURL to fetch (repeatable for multiple URLs, up to 20)
--questionstringrequiredQuestion to answer about the URL content
--prettyflagoffHuman-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
# 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.

来自同一仓库

更多 Skills

全部 Skills