@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 +22 -0
- package/README.zh-CN.md +21 -0
- package/cli-manifest.json +626 -0
- package/clis/52pojie/search.js +32 -0
- package/clis/baidu/search.js +68 -0
- package/clis/bing/search.js +58 -0
- package/clis/csdn/search.js +34 -0
- package/clis/gitlab/search.js +36 -0
- package/clis/ima/ax.js +656 -0
- package/clis/ima/knowledge.js +95 -0
- package/clis/ima/native-api.js +169 -0
- package/clis/ima/native-client.js +70 -0
- package/clis/ima/utils.js +48 -0
- package/clis/so/search.js +36 -0
- package/clis/sogou/search.js +35 -0
- package/clis/threads/search.js +33 -0
- package/clis/yandex/search.js +43 -0
- package/dist/src/browser/daemon-client.d.ts +4 -1
- package/dist/src/browser/page.d.ts +6 -0
- package/dist/src/browser/page.js +20 -0
- package/dist/src/types.d.ts +6 -0
- package/package.json +1 -1
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) 开源。
|