技能标识:yula-web-search
Yula's custom web search - NO API KEY required. Uses multiple fallback search methods with public services that allow anonymous access. Works by direct curl requests through local network, parse HTML to extract search results, then extracts content from top results and summarizes. Works out of the box without any configuration. Provides full web search capability for Chinese language queries. Use when: user asks to search the web, look up latest information, find news, get current prices, read w
由 Yula 开发的自定义网络搜索技能 — 无需 API 密钥。
使用多个公共匿名搜索服务,无需 API 密钥。通过本地网络的直接 curl 请求工作:
开箱即用,无需配置。
✅ 使用此技能时:
❌ 不要使用时:
bash
QUERY=你的搜索查询
QUERY_ENCODED=$(python3 -c import urllib.parse; print(urllib.parse.quote($QUERY))
curl -s -m 20 -L -A Mozilla/5.0 (Macintosh; Intel Mac OS X 10157) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 https://cn.bing.com/search?q=$QUERY_ENCODED | python3 -c
import re, sys
from html.parser import HTMLParser
class BingParser(HTMLParser):
def init(self):
super().init()
self.results = []
self.in_h2 = False
self.current_url = None
self.current_title = []
def handle_starttag(self, tag, attrs):
attrs_dict = dict(attrs)
if tag == h2:
self.in_h2 = True
self.current_title = []
if tag == a and self.inh2 and href in attrsdict:
url = attrs_dict[href]
if bing.com not in url and url.startswith(http):
self.current_url = url
def handle_endtag(self, tag):
if tag == h2:
if self.current_url:
title = .join(self.current_title).strip()
self.results.append((title, self.current_url))
self.current_url = None
self.in_h2 = False
def handle_data(self, data):
if self.inh2 and self.currenturl:
self.current_title.append(data)
parser = BingParser()
parser.feed(sys.stdin.read())
for i, (title, url) in enumerate(parser.results[:8]):
print(f{i+1}\\t{title}\\t{url})
bash
QUERY=你的搜索查询
QUERY_ENCODED=$(python3 -c import urllib.parse; print(urllib.parse.quote($QUERY))
curl -s -m 20 -L -A Mozilla/5.0 (Macintosh; Intel Mac OS X 10157) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 https://www.google.com/search?q=$QUERY_ENCODED | python3 -c
import re, sys
results = []
pattern = r
python
def extracturlcontent(url):
# 使用 curl 获取 HTML
# 使用 python 提取文本内容,移除脚本/样式/脚本,获取主要文本
# 返回清理后的文本内容,每个 URL 限制约 2000 字符
完整工作流程示例:
bash
class TextExtractor(HTMLParser):
def init(self):
super().init()
self.text = []
self.in_script = False
self.in_style = False
def handle_starttag(self, tag, attrs):
if tag == script or tag == style or tag == noscript:
self.in_script = True
if tag == style:
self.in_style = True
def handle_endtag(self, tag):
if tag == script or tag == style or tag == noscript:
self.in_script = False
if tag == style:
self.in_style = False
def handle_data(self, data):
if not self.inscript and not self.instyle:
words = data.strip()
if words:
self.text.append(words)
parser = TextExtractor()
parser.feed(sys.stdin.read())
content = .join(parser.text)
始终使用现代浏览器用户代理以避免立即被屏蔽:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10157) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
搜索 2026腾势Z9GT介绍
步骤 1:搜索 Bing → 获取前 8 个结果
bash
步骤 2:选择最相关的结果
步骤 3:从每个 URL 提取内容
步骤 4:合并并总结
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 yula-web-search-1776074401 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 yula-web-search-1776074401 技能
skillhub install yula-web-search-1776074401
文件大小: 4.04 KB | 发布时间: 2026-4-14 12:36