根据主人审美品味,在多个社交平台搜索并推荐颜值博主/视频。
> "让每一次搜索都充满惊喜 😍"
首次使用时,询问主人:
将偏好保存到 references/user_preference.json
如果主人未提供 cookies,引导主人获取:
小红书:
1. 登录 https://www.xiaohongshu.com
2. F12 → Application → Cookies
3. 复制 web_session, a1 等关键字段
抖音:
1. 登录 https://www.douyin.com
2. F12 → Application → Cookies
3. 复制 sessionid, ttwid 等关键字段
B站:
1. 登录 https://www.bilibili.com
2. F12 → Application → Cookies
3. 复制 SESSDATA, bili_jct 等关键字段
YouTube:
将 cookies 保存到 references/platform_cookies.json
根据主人偏好,在对应平台搜索:
# 小红书
python3 scripts/xhs_search.py "关键词" 10
# 抖音
python3 scripts/douyin_search.py "关键词" 10
# B站
python3 scripts/bilibili_search.py "关键词" 10
# YouTube
yt-dlp --dump-json "ytsearch5:关键词"
将搜索结果按播放量/点赞排序,打开前3-5个最热门的视频:
open "视频链接"
| 平台 | 状态 | 需要的 Cookies |
|---|---|---|
| ------ | ------ | ---------------- |
| 小红书 | ✅ | web_session, a1 |
| 抖音 | ✅ | sessionid, ttwid |
| B站 | ✅ | SESSDATA, bili_jct |
| YouTube | ✅ | 无需 |
python3 scripts/xhs_search.py "颜值 美女" 10
python3 scripts/douyin_search.py "美女" 10
python3 scripts/bilibili_search.py "真栗" 10
python3 scripts/bilibili_search.py user 129641517 5
保存在 references/user_preference.json:
{
"preferred_type": ["御姐", "甜美"],
"favorite_creators": ["habin", "leeesovely", "真栗"],
"preferred_platforms": ["抖音", "B站"],
"last_search": "2024-01-01",
"search_history": []
}
保存在 references/platform_cookies.json:
{
"xiaohongshu": {
"web_session": "xxx",
"a1": "xxx"
},
"douyin": {
"sessionid": "xxx",
"ttwid": "xxx"
},
"bilibili": {
"SESSDATA": "xxx",
"bili_jct": "xxx"
}
}
🦞 色龙虾,让美好触手可及 😍
共 1 个版本
暂无安全检测报告