From 63f530f1e469dbd3468f75cdc75357e1de8d183f Mon Sep 17 00:00:00 2001 From: codes-res-by-bigbrother666sh Date: Tue, 17 Mar 2026 20:51:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(skill):=20=E4=BB=8E=20opencli=20=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=99=A8=E6=8F=90=E7=82=BC=E5=B9=B3=E5=8F=B0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=9F=A5=E8=AF=86=EF=BC=8C=E6=9B=B4=E6=96=B0=20smart-?= =?UTF-8?q?search?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 Cookie 预热章节:明确 8 个需要先访问主页的平台(知乎/Reddit/微博/YouTube/雪球/路透社/Bilibili/小红书) - 修复小红书 source 参数:web_explore_feed → web_search_result_notes,补充 wait+滚动说明 - 新增 Twitter/X 等待时间提示:导航后需等待 5 秒 - 新增 Reddit 搜索 URL(全站 & subreddit,含 sort/time 过滤) - 新增 LinkedIn 搜索(职位/人员/公司) - 新增雪球股票搜索、HackerNews/V2EX、路透社新闻搜索章节 --- wiseflow/skills/smart-search/SKILL.md | 120 +++++++++++++++++++++++++- 1 file changed, 119 insertions(+), 1 deletion(-) diff --git a/wiseflow/skills/smart-search/SKILL.md b/wiseflow/skills/smart-search/SKILL.md index ca93a3e..7f747a6 100644 --- a/wiseflow/skills/smart-search/SKILL.md +++ b/wiseflow/skills/smart-search/SKILL.md @@ -23,6 +23,26 @@ Use this skill whenever the user asks you to search for information on the web o --- +## Cookie Warmup — CRITICAL for Authenticated Platforms + +Many platforms will return empty results or redirect to login if you navigate **directly** to a search URL without first visiting the home page. Always warm up the session in two steps: + +| Platform | Step 1 (warmup) | Step 2 (search) | +|----------|-----------------|-----------------| +| 知乎 | Navigate `https://www.zhihu.com` | Navigate to search URL | +| Reddit | Navigate `https://www.reddit.com` | Navigate to search URL | +| 微博 | Navigate `https://weibo.com` | Navigate to search URL | +| YouTube | Navigate `https://www.youtube.com` | Navigate to search URL | +| 雪球 | Navigate `https://xueqiu.com` | Navigate to search URL | +| 路透社 | Navigate `https://www.reuters.com` | Navigate to search URL | +| Bilibili | Navigate `https://www.bilibili.com` | Navigate to search URL | +| 小红书 | Navigate `https://www.xiaohongshu.com` | Navigate to search URL | + +**Platforms that do NOT need warmup** (public APIs / no auth required): +- Bing, Baidu, Quark, GitHub, arXiv, Wikipedia, BBC, HackerNews, V2EX + +--- + ## General Web Search ### Bing (recommended for English and international content) @@ -189,9 +209,12 @@ For sort and filter options: interact with the page UI after navigating. ### 小红书 (Xiaohongshu / RED / 红薯) ``` -https://www.xiaohongshu.com/search_result?keyword={keyword}&source=web_explore_feed +https://www.xiaohongshu.com/search_result?keyword={keyword}&source=web_search_result_notes ``` +> **Note**: Use `source=web_search_result_notes` (not `web_explore_feed`) to get search results instead of explore feed. +> After navigating, wait ~3 seconds and scroll down twice — results use lazy loading. + For channel selection, filter, and sort: interact with the page UI after navigating. ### 知乎 (Zhihu) @@ -240,6 +263,8 @@ Multi-keyword: join with `%20` Add "Near You" filter: append `&lf=on` +> **Note**: Twitter/X uses heavy client-side rendering. After navigating, wait at least **5 seconds** before taking a snapshot to ensure tweet content has loaded. + Multi-keyword: join with `%20` ### Facebook @@ -254,6 +279,23 @@ For filter and sort options: interact with the page UI after navigating. Multi-keyword: join with `%20` +### Reddit + +``` +https://www.reddit.com/search/?q={keyword} +``` + +Sort options: `&sort=relevance` | `hot` | `top` | `new` | `comments` + +Time filter (for `sort=top`): `&t=hour` | `day` | `week` | `month` | `year` | `all` + +Search within a specific subreddit: +``` +https://www.reddit.com/r/{subreddit}/search/?q={keyword}&restrict_sr=on&sort=relevance&t=all +``` + +Multi-keyword: join with `+` + --- ## Developer Platforms @@ -286,6 +328,25 @@ Example: https://github.com/search?q=wiseflow+addon&type=repositories&s=stars&o=desc&l=Python ``` +### LinkedIn + +Job search (cookie warmup required — navigate `https://www.linkedin.com` first): +``` +https://www.linkedin.com/jobs/search/?keywords={keyword}&location={location} +``` + +People search: +``` +https://www.linkedin.com/search/results/people/?keywords={keyword} +``` + +Company search: +``` +https://www.linkedin.com/search/results/companies/?keywords={keyword} +``` + +Multi-keyword: join with `%20` + --- ## After Navigating @@ -297,3 +358,60 @@ https://github.com/search?q=wiseflow+addon&type=repositories&s=stars&o=desc&l=Py - Modifying the URL's pagination parameter, or - Clicking the "Next page" button on the page. 5. Close the tab immediately after extracting all needed information. + +--- + +## Financial Platforms + +### 雪球 (Xueqiu) — Stocks & Finance + +Stock/symbol search (cookie warmup required — navigate `https://xueqiu.com` first): +``` +https://xueqiu.com/search?q={keyword} +``` + +Example queries: `茅台`, `AAPL`, `腾讯`, `SH600519` + +For stock detail page: `https://xueqiu.com/S/{symbol}` (e.g., `/S/SH600519`) + +--- + +## Tech Communities + +### Hacker News (public, no login required) + +``` +https://news.ycombinator.com/ +``` + +Search via Algolia (unofficial but reliable): +``` +https://hn.algolia.com/?q={keyword} +``` + +Sort by date: `&dateRange=pastWeek` | `pastMonth` | `pastYear` + +### V2EX (public, no login required) + +Search (Google site search approach, most reliable): +``` +https://www.google.com/search?q=site:v2ex.com+{keyword} +``` + +Or navigate directly to V2EX and use the built-in search: +``` +https://www.v2ex.com/?q={keyword} +``` + +--- + +## News + +### Reuters + +News search (cookie warmup required — navigate `https://www.reuters.com` first): +``` +https://www.reuters.com/search/news?blob={keyword} +``` + +Multi-keyword: join with `+`