Files
Obsidian/MyArticles/日常提示语2.md
T
2026-07-21 14:53:24 +08:00

122 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
nanobot onboard --config ~/.nanobot2/config.json --workspace ~/.nanobot2/workspace
sk-uTkcZNbajVvVDmcH4Jz1iazEBVsKuvxlucpCejeeQesjWBEm
sudo npm install -g @whiskeysockets/baileys
以下4个链接,是我之前的网站的资讯类文章的链接,这些链接包含不少文章列表,因为我们已经实现了采集资讯的功能。
基于我们的能力,你实现一个脚本工具,逐一批量采集下述4个链接里的所有文章 (分析待采集链接的结构,再写脚本,再找一个具体的文章,测试采集,没有问题,则进行完整的采集流程);
我已经在当前项目里,创建了相应的栏目,即: 科普文章 肾友 糖友 健康;
需要将相应的文件,归类到正确的栏目;
需要采集文章里的所有图片,并保存到我们的本地图片目录;
链接列表里面含有封面图片,直接将其作为我们这个项目的资讯文章封面图;
采集下来的文章格式,使用markdown;
采集的文章直接设置成“发布”状态,而不是“草稿”状态;
科普文章
https://niaodaifu.cn/health-information?menu_id=15
肾友
https://niaodaifu.cn/health-information?menu_id=7
糖友
https://niaodaifu.cn/health-information?menu_id=8
健康
https://niaodaifu.cn/health-information?menu_id=6
---
你仔细分析我的需求,做出详细计划,逐步执行你的计划。如果有问题,则反问我。
---
请分析以下两个开源项目,
https://github.com/HKUDS/CLI-Anything
https://github.com/jackwener/opencli
如果我想把某个网站,做成一个ai 方便调用的CLI
使用哪一个开源库更方便
比如我想把这个CRM系统做成CLI
https://fumamx.com/#/login
最终我的目的,cli工具使用导出的cookie,登录这个网站,搜索我要的客户信息。
你讲了## 工作原理
1. **Cookie 模式**:复用浏览器登录态,直接调用 API
2. **Browser 模式**:通过 CDP 控制真实浏览器,模拟用户操作
3. **生成模式**:`explore` 分析网站 → `synthesize` 推导接口 → `generate` 生成适配器
---
比如我给你一个网站,提供一个Cookie , 你就可能实现**生成新适配器** ?????
| **生成新适配器** | `explore → synthesize → generate` 从真实页面推导 CLI |
https://www.fumamx.com/#/login
showmin.zhou@163.com
Kingc.83695910
你们可以登录我的这个地址,体验一下,用户名/密码 admin abcd1234
http://129.211.173.87:10000/#/login
---
/home/ubuntu/.local/share/uv/tools/nanobot-ai/bin/python3 /home/ubuntu/.local/bin/nanobot gateway --config /home/ubuntu/.nanobot2/config.json --port 18796
# 个人 Telegram Bot
nanobot onboard --config ~/.nanobot2/config.json --workspace ~/.nanobot2/workspace --port 18796
# 工作 Slack Bot
nanobot onboard --config ~/.nanobot-work/config.json \
--workspace ~/.nanobot-work/workspace
nanobot gateway --config ~/.nanobot2/config.json --port 18796
nanobot gateway --config ~/.nanobot-work/config.json
nanobot onboard --config ~/.nanobot2/config.json --workspace ~/.nanobot2/workspace
你的系统服务,被 nanobot2这个家伙错误地改名了。。。。。。
所以,你需要做两件事。
1、将之前属于你的nanobot-gateway.service里面的内容,路径和命令,指向你的/home/ubuntu/.nanobot 。
2、帮我做一个新的系统服务nanobot-gateway2.service,指向- 基于 `/home/ubuntu/.nanobot2` - 端口 18796 。
我手动 运行nanobot2的方式是: nanobot gateway --config ~/.nanobot-personal/config.json --port 18796
---
**你理解我的问题吗?? 请自行分析,并回答我**