Files
Obsidian/MyBestNanobot/nanobot的日常.md
T
coco 8b94d76799 a
2026-07-21 13:57:15 +08:00

187 lines
6.0 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.
✅ **已记录!**
**小红书搜索流程已存档:**
```
xhs search "关键词" --sort popular/latest --json
↓
Python解析 → DataFrame处理 → Excel生成
↓
邮件发送(带HTML表格预览+附件)
```
**可用选项:**
- `--sort popular` 按热度 | `--sort latest` 按最新
- `--type video` 只看视频 | `--type image` 只看图文
- `xhs search-user "用户名"` 搜索用户
- `xhs topics "话题"` 搜索话题
**需要时直接说:**
> "搜索[关键词],导出前X条到Excel发邮件"
## ✅ **两个工作流完全独立**
### **定时任务配置**
| 时间 | 工作流 | 脚本路径 | 功能 |
|------|--------|----------|------|
| **10:00** | 小红书热点趋势 | `xhs_trending_automation/scripts/scheduler.sh` | AI原创蹭热点 |
| **16:00** | IT资讯自动化 | `it_automation_enhanced/scripts/main_scheduler_complete.sh` | 翻译外刊资讯 |
### **独立性说明**
```
┌─────────────────────────────────────────────────────────┐
│ 10:00 小红书热点趋势工作流 │
│ ├── 搜索小红书热门话题 │
│ ├── AI全新创作原创内容 │
│ ├── 作图 + 去AI化 │
│ └── 发布到小红书 │
│ ↓ 独立运行,互不影响 │
├─────────────────────────────────────────────────────────┤
│ 16:00 IT资讯自动化工作流 │
│ ├── 抓取TechCrunch/Wired文章 │
│ ├── AI翻译 + 总结 │
│ ├── 作图 + 去AI化 │
│ ├── 发送邮件 │
│ └── 发布到小红书 │
└─────────────────────────────────────────────────────────┘
```
### **共享部分**
两个工作流**只共享**以下模块(解耦设计):
- `xiaohongshu_multi_image.py` - 作图和发布功能
- 各自独立调用,互不干扰
### **每天会发2篇笔记**
- 上午10:00:热点趋势原创
- 下午16:00:IT资讯翻译
它们除了都用同一个`xhs`账号发布外,其他流程完全独立!🐈
# 20260323
## ✅ **定时任务设置完成!**
### **已配置自动化**
| 项目 | 配置 |
|------|------|
| **运行时间** | 每天 10:00 (北京时间) |
| **任务ID** | `d002c8d0` |
| **调度脚本** | `xhs_trending_automation/scripts/scheduler.sh` |
---
### **话题轮换表**
| 星期 | 话题 | 风格 |
|------|------|------|
| 周一 | AI人工智能 | tech |
| 周二 | 芯片技术 | tech |
| 周三 | 机器人科技 | tech |
| 周四 | 新能源技术 | tech |
| 周五 | AI应用趋势 | tech |
| 周六 | 科技投资 | business |
| 周日 | AI产业分析 | tech |
---
### **快速操作**
```bash
# 查看今天日志
cd /home/ubuntu/nanocode/xhs_trending_automation
./scripts/view_logs.sh
# 手动触发今日任务
./scripts/scheduler.sh
# 手动创作指定话题(试运行)
python3 scripts/workflow.py --topic "量子计算" --dry-run
# 查看定时任务状态
cron list
```
---
### **工作流程对比**
| 自动化项目 | 运行时间 | 数据源 | 内容来源 | 发布频率 |
|-----------|----------|--------|----------|----------|
| **IT资讯自动化** | 16:00 | TechCrunch/Wired | 翻译+总结外刊 | 每日1篇 |
| **小红书热点趋势** | 10:00 | 小红书热门 | AI原创蹭热点 | 每日1篇 |
---
### **明天10:00将自动发布**
- **话题**: AI人工智能(周一)
- **内容**: AI全新原创
- **图片**: 自动生成(Markdown渲染标题+圆点列表)
- **正文**: 去除Markdown标记的纯文本
两个自动化项目将每天发布2篇笔记,保持账号活跃!🎉
🐈 nanobot
我目前安装了 20个技能,分为以下几类:
## 🔧 核心技能
- anti-ai-detector - 去除AI痕迹,去AI化文本
- xiaohongshu_integration - 小红书笔记发布与集成
- email-sender - 邮件发送服务
- image-generation - 图片生成
## 🌐 浏览器/爬虫
- agent-browser - AI代理浏览器自动化CLI
- browser-use - 网页浏览与数据提取
- lightpanda_enhancer - Lightpanda轻量爬虫增强
## 📄 文档处理
- office-document-specialist-suite - Word/Excel/PPT处理
- markitdown-converter - 文件转Markdown
- chat-history-exporter - 聊天记录导出
## 🧠 AI/管理
- self-improving-agent - 自改进经验学习系统
- context-hub - 上下文管理
- memory - 双层记忆系统
## ⚙️ 工具/系统
- cron - 定时任务与提醒
- skill-creator - 创建新技能
- find-skills - 查找可用技能
- clawhub - 技能市场
- tmux - 远程会话控制
- weather - 天气查询
- opencli-integration - OpenCLI集成(备用)
---
还有2个待配置技能:github(需gh CLI)、summarize(需安装summarize
CLI)。
你想了解哪个技能的详细用法吗?
---
# 备份原源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 替换为清华源(Ubuntu 20.04/22.04/24.04 通用)
## 严格说,是复制几行就行
sudo tee /etc/apt/sources.list <<-'EOF'
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-security main restricted universe multiverse
EOF
sudo apt update -y