返回顶部
s

smart-image-finder智能图像查找

|

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.4
安全检测
已通过
90
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

smart-image-finder

智能图片查找器

为AI智能体提供完整解决方案,用于查找文章、仪表盘和内容创作所需的高质量图片。

无需浏览器 — 所有方法均通过后台命令行运行。

核心方法

方法适用场景优点缺点
新闻网站提取特定新闻事件真实、高清、权威需知道来源
Brave图片搜索
通用关键词 | 快速、免费、相关性好 | 质量参差不齐 | | AI生成 | 概念图、自定义视觉 | 完全可定制 | 需要好的提示词 |

方法一:新闻网站高清提取(无需浏览器)

工作流程:curl + grep(推荐)

直接从HTML中提取图片URL,无需打开浏览器:

bash

步骤1:获取页面HTML并提取图片URL


curl -sL https://www.reuters.com/world/article-slug/ | \
grep -oE https://www\.reuters\.com/resizer/v2/[^]+\.jpg[^]* | head -3

步骤2:使用高清参数下载

curl -sL -o photo.jpg https://www.reuters.com/resizer/v2/xxx.jpg?width=3000&quality=100

步骤3:验证是否为图片

file photo.jpg # 应显示:JPEG image data

特定来源提取模式

bash

路透社


curl -sL $URL | grep -oE https://www\.reuters\.com/resizer/v2/[^]+\.jpg[^]* | head -3

TechCrunch

curl -sL $URL | grep -oE https://techcrunch\.com/wp-content/uploads/[^]+\.(jpg|png) | head -3

彭博社

curl -sL $URL | grep -oE https://assets\.bwbx\.io/images/[^]+\.(jpg|webp) | head -3

BBC

curl -sL $URL | grep -oE https://ichef\.bbci\.co\.uk/news/[0-9]+/[^]+\.jpg | head -3

法国24台

curl -sL $URL | grep -oE https://s\.france24\.com/media/display/[^]+\.jpg | head -3

Spaceflight Now(WordPress)

curl -sL $URL | grep -oE https://spaceflightnow\.com/wp-content/uploads/[^]+\.jpg | head -3

澎湃新闻

curl -sL $URL | grep -oE https://imagepphcloud\.thepaper\.cn/pph/image/[^]+\.jpg | head -3

已验证来源(可直接下载)

科技/AI类别
来源CDN模式高清参数备注
TechCrunchtechcrunch.com/wp-content/uploads/?w=2048最稳定 ✅
彭博社
assets.bwbx.io/images/ | 直接高清 | WebP格式 |

政治/国际类别
来源CDN模式高清参数备注
路透社reuters.com/resizer/v2/?width=3000&quality=100最稳定 ✅
BBC
ichef.bbci.co.uk/news/1024/ | /1024/ 最大 | 限制1024px |

| NBC新闻 | media-cldnry.s-nbcnews.com/image/ | 直接下载 | 中等尺寸 | | 法国24台 | s.france24.com/media/display/ | w:1920 | 可调整 ✅ |

太空/科学类别
来源CDN模式高清参数备注
Spaceflight Nowspaceflightnow.com/wp-content/uploads/移除尺寸后缀WordPress标准

中文来源
来源CDN模式备注
澎湃新闻imagepphcloud.thepaper.cn/pph/image/直接下载 ✅

需要手动保存的来源

来源问题替代方案
卫报URL签名验证右键保存
The Verge
复杂CDN格式 | 改用Brave搜索 | | Wired | 页面保护 | 手动保存 | | CNN | URL提取困难 | 改用Brave搜索 | | 美联社 | 参数调整失败 | 手动保存原图 |

高清参数快速参考

bash

路透社


?width=3000&quality=100

TechCrunch

?w=2048

BBC(替换URL中的数字)

/1024/ # 最大可用

法国24台

w:1920

NBC新闻(URL参数)

t_fit-1500w

方法二:Brave图片搜索(无需浏览器)

适用于:快速通用图片、自动化工作流程。

基本用法

bash

设置API密钥(首次使用)


export BRAVEAPIKEY=yourapikey

搜索图片

curl -s https://api.search.brave.com/res/v1/images/search?q=keyword&count=10 \ -H X-Subscription-Token: $BRAVEAPIKEY | jq .results[] | {title, url: .properties.url, width: .properties.width}

直接获取第一张图片URL

curl -s https://api.search.brave.com/res/v1/images/search?q=SpaceX%20Starship&count=1 \ -H X-Subscription-Token: $BRAVEAPIKEY | jq -r .results[0].properties.url

速率限制 ⚠️

Brave API有速率限制。进行多次搜索时:

bash

在请求之间添加延迟(建议1-2秒)


for query in query1 query2 query3; do
curl -s https://api.search.brave.com/res/v1/images/search?q=$query&count=1 \
-H X-Subscription-Token: $BRAVEAPIKEY | jq -r .results[0].properties.url
sleep 2 # 请求之间等待2秒
done

最佳实践:

  • - 免费版:约1次请求/秒最大
  • 批量请求之间添加 sleep 1 或 sleep 2
  • 如果收到429(速率限制),等待60秒后重试

搜索技巧

  1. 1. 添加年份:SpaceX Starship 2025 比 SpaceX Starship 更精确
  2. 添加事件术语:Keir Starmer Xi Jinping Beijing handshake 优于 UK China meeting
  3. 网站限制:site:reuters.com Trump tariff 限制特定来源

一行命令:搜索并下载

bash

搜索、获取第一个结果URL、下载


IMG_URL=$(curl -s https://api.search.brave.com/res/v1/images/search?q=SpaceX%20launch%202025&count=1 \
-H X-Subscription-Token: $BRAVEAPIKEY | jq -r .results[0].properties.url)
curl -sL -o spacex.jpg $IMG_URL
file spacex.jpg

验证图片可访问性

bash

检查URL是否返回200


curl -sI $IMAGE_URL | head -1

应返回:HTTP/2 200

检查内容类型

curl -sI $IMAGE_URL | grep -i content-type

应返回:content-type: image/jpeg 或 image/png


方法三:AI图片生成(无需浏览器)

适用于:概念图、创意插图、无合适真实照片时。

免费选项:Pollinations

bash

生成图片(完全免费,无需API密钥)


curl -sL -o output.jpg https://image.pollinations.ai/prompt/description?width=1920&height=1080&nologo=true

示例:科技风格AI概念图

curl -sL -o ai-concept.jpg https://image.pollinations.ai/prompt/futuristic%20AI%20chip%20glowing%20blue%20on%20dark%20background%20minimalist%20tech%20style?width=1920&height=1080&nologo=true

提示词最佳实践

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 smart-image-finder-1775976670 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 smart-image-finder-1775976670 技能

通过命令行安装

skillhub install smart-image-finder-1775976670

下载

⬇ 下载 smart-image-finder v1.0.4(免费)

文件大小: 9.18 KB | 发布时间: 2026-4-13 12:05

v1.0.4 最新 2026-4-13 12:05
Add Brave API rate limiting guidance (sleep between batch requests)

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部