weibo-ops

Weibo (微博) write operations via DrissionPage + Chrome CDP. Post, delete, repost, comment, and like on weibo.com. Activate when user asks to publish/delete/repost/comment/like on Weibo, or mentions 发微博/删微博/转发/评论/点赞.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "weibo-ops" with this command: npx skills add langlang/weibo-ops

Weibo Operations Skill

通过 DrissionPage 连接 Chrome CDP 端口,模拟鼠标/键盘操作完成微博写操作。

前置条件

  1. Chrome 以 CDP 模式运行(端口 19334):

    bash scripts/start_chrome.sh
    

    脚本会自动从原始 Chrome profile 复制登录态到 /tmp/chrome-debug-profile

  2. 已登录微博:Chrome profile 中必须有有效的微博登录 session。首次使用需在弹出的 Chrome 窗口中手动登录 weibo.com。

  3. 依赖pip install DrissionPage

可用操作

所有操作通过 scripts/weibo_ops.py 执行:

Action说明示例
count查看当前微博数--action count
post发微博--action post --text "内容"
delete_all删除全部微博--action delete_all
delete_one删除指定位置微博--action delete_one --index 0
repost转发帖子--action repost --post_id BID --text "转发语"
comment评论帖子--action comment --post_id BID --text "评论"
like点赞帖子--action like --post_id BID

默认参数

  • --port 19334 Chrome CDP 端口
  • --uid 6331761230 微博 UID(浪浪在发芽)
  • --keep-open 不关闭浏览器连接(调试用)

用法示例

# 发微博
python3 scripts/weibo_ops.py --port 19334 --action post --text "你好世界"

# 转发别人的帖子
python3 scripts/weibo_ops.py --port 19334 --action repost --post_id QAgBUith6 --uid 7909159083 --text "说得好"

# 评论
python3 scripts/weibo_ops.py --port 19334 --action comment --post_id QAgBUith6 --uid 7909159083 --text "赞同"

# 点赞
python3 scripts/weibo_ops.py --port 19334 --action like --post_id QAgBUith6 --uid 7909159083

# 删除全部
python3 scripts/weibo_ops.py --port 19334 --action delete_all

# 查看数量
python3 scripts/weibo_ops.py --port 19334 --action count

注意事项

  • Chrome 每次重启后需要重新运行 start_chrome.sh 刷新 profile
  • 微博 Cookie 有效期有限,过期后需重新登录
  • 转发/评论/点赞操作在别人帖子上需要 --uid 参数指向帖子作者的 UID
  • 自己不能赞自己的帖子(微博限制)
  • 删除操作通过 CDP 鼠标点击 popup 菜单,速度较慢(每条约 10 秒)

读操作

读数据(热搜、搜索、帖子列表等)使用 weibo-openclaw-plugin:

  • weibo-search — 微博智搜
  • weibo-hot-search — 热搜榜
  • weibo-status — 自己的微博列表
  • weibo-crowd — 超话操作

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Skill Customs

Use when user needs to find import/export trade data, competitor customers, or market intelligence from customs data. Use when searching for active buyers of...

Registry SourceRecently Updated
General

Skill Product

Use when user needs to generate differentiated product descriptions for foreign trade. Use when creating product listings for B2B platforms, e-commerce sites...

Registry SourceRecently Updated
General

Skill Linkedin

Use when user needs to generate personalized LinkedIn connection requests or outreach messages. Use when automating LinkedIn lead generation and engagement....

Registry SourceRecently Updated
General

Skill Guangjiao

Use when user needs to discover leads from Canton Fair (广交会) exhibitors. Use when mining business opportunities from trade show data. Use when finding exhibi...

Registry SourceRecently Updated