@sovovs/bycli 2.1.37 → 2.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,6 +30,28 @@ bycli 12306 stations 北京 # public command, no login required
30
30
  bycli juejin search bycli # search Juejin
31
31
  ```
32
32
 
33
+ ### Search adapters
34
+
35
+ The following public search commands are available:
36
+
37
+ ```bash
38
+ bycli baidu search "open cli" --limit 10 --page 1 --site github.com
39
+ bycli bing search "open cli" --freshness week --market en-US
40
+ bycli yandex search "open cli" --lr 213 --sort date
41
+ bycli so search "open cli" --type news
42
+ bycli sogou search "open cli" --time week --sort date
43
+ bycli gitlab search runner --scope issues --order-by updated_at --sort desc
44
+ bycli csdn search "node cli" --content-type blog --sort latest
45
+ bycli threads search "open cli" --author alice
46
+ bycli 52pojie search "open cli" --sort latest
47
+ ```
48
+
49
+ All search commands accept `--limit` and pagination where supported, and return
50
+ structured rows including rank, title, URL, snippet, result type, author,
51
+ publication time, score, and platform-specific `extra` data. These adapters use
52
+ public pages or the active browser session; login prompts, CAPTCHA, and anti-bot
53
+ pages are reported as typed errors instead of empty successful results.
54
+
33
55
  ## License
34
56
 
35
57
  Licensed under the [Apache License 2.0](./LICENSE).
package/README.zh-CN.md CHANGED
@@ -29,6 +29,27 @@ bycli 12306 stations 北京 # 公开命令,无需登录
29
29
  bycli juejin search bycli # 掘金搜索
30
30
  ```
31
31
 
32
+ ### 搜索适配器
33
+
34
+ 当前可用的搜索命令包括:
35
+
36
+ ```bash
37
+ bycli baidu search "open cli" --limit 10 --page 1 --site github.com
38
+ bycli bing search "open cli" --freshness week --market zh-CN
39
+ bycli yandex search "open cli" --lr 213 --sort date
40
+ bycli so search "open cli" --type news
41
+ bycli sogou search "open cli" --time week --sort date
42
+ bycli gitlab search runner --scope issues --order-by updated_at --sort desc
43
+ bycli csdn search "node cli" --content-type blog --sort latest
44
+ bycli threads search "open cli" --author alice
45
+ bycli 52pojie search "open cli" --sort latest
46
+ ```
47
+
48
+ 这些命令会尽量提供 `--limit`、分页、排序、时间、区域、类型等参数,
49
+ 并返回包含排名、标题、URL、摘要、结果类型、作者、发布时间、评分和平台专属
50
+ `extra` 字段的结构化结果。适配器使用公开页面或当前浏览器会话;遇到登录、验证码
51
+ 或反爬页面时会返回明确的类型化错误,而不是伪造空结果。
52
+
32
53
  ## 许可证
33
54
 
34
55
  基于 [Apache License 2.0](./LICENSE) 开源。