tiktok

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

TikTok Skill

TikTok Skill

Overview

概述

Automates TikTok operations including uploading videos, engaging with content, managing profile, and accessing creator analytics through the web interface.
通过网页界面自动化TikTok操作,包括上传视频、内容互动、个人资料管理及访问创作者数据分析。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/tiktok/install.sh | bash
Or manually:
bash
cp -r skills/tiktok ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/tiktok/install.sh | bash
或手动安装:
bash
cp -r skills/tiktok ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

First, ensure canifi-env is installed:

canifi-env set TIKTOK_EMAIL "your-email@example.com" canifi-env set TIKTOK_PASSWORD "your-password"
undefined
canifi-env set TIKTOK_EMAIL "your-email@example.com" canifi-env set TIKTOK_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭据,由您掌控。 Canifi LifeOS 尊重您的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用您的已认证会话,且绝不会看到您的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在您的本地机器上访问,绝不会被传输。

Capabilities

功能

  • Upload and publish videos
  • Like and comment on videos
  • Follow/unfollow accounts
  • Search users and sounds
  • View analytics and insights
  • Manage video settings
  • Access trending content
  • Handle video descriptions and hashtags
  • 上传并发布视频
  • 为视频点赞和评论
  • 关注/取消关注账号
  • 搜索用户和音效
  • 查看数据分析和洞察
  • 管理视频设置
  • 访问热门内容
  • 处理视频描述和话题标签

Usage Examples

使用示例

Example 1: Upload Video

示例1:上传视频

User: "Post this video to TikTok with trending hashtags"
Claude: I'll upload that TikTok video.
- Navigate to tiktok.com/upload
- Upload video file
- Add description and hashtags
- Configure visibility settings
- Publish video
- Confirm posted successfully
用户:“将这个视频发布到TikTok并添加热门话题标签”
Claude:我会上传这个TikTok视频。
- 导航至tiktok.com/upload
- 上传视频文件
- 添加描述和话题标签
- 配置可见性设置
- 发布视频
- 确认发布成功

Example 2: Engage with Content

示例2:内容互动

User: "Like videos on the For You page"
Claude: I'll engage with trending content.
- Navigate to For You page
- View and like interesting videos
- Track engagement actions
- Confirm likes registered
用户:“为‘推荐页面’的视频点赞”
Claude:我会与热门内容进行互动。
- 导航至推荐页面
- 浏览并为有趣的视频点赞
- 追踪互动操作
- 确认点赞已记录

Example 3: Check Analytics

示例3:查看数据分析

User: "Show me my TikTok video performance this week"
Claude: I'll pull your analytics.
- Navigate to Creator Center
- Access Analytics section
- Gather video performance data
- Present views, likes, shares summary
用户:“展示我本周的TikTok视频表现”
Claude:我会提取您的数据分析。
- 导航至创作者中心
- 访问数据分析板块
- 收集视频表现数据
- 呈现播放量、点赞量、分享量汇总

Example 4: Search Trending Sounds

示例4:搜索热门音效

User: "Find trending sounds for my next video"
Claude: I'll find trending sounds.
- Navigate to sounds search
- Browse trending audio
- List popular sounds with usage counts
- Provide sound links
用户:“为我的下一个视频寻找热门音效”
Claude:我会找到热门音效。
- 导航至音效搜索页面
- 浏览热门音频
- 列出带有使用量统计的热门音效
- 提供音效链接

Authentication Flow

认证流程

  1. Navigate to tiktok.com via Playwright MCP
  2. Click login and select email/password option
  3. Enter credentials from canifi-env
  4. Handle CAPTCHA if presented (notify user)
  5. Complete 2FA if enabled (notify user via iMessage)
  6. Verify feed access
  7. Maintain session cookies
  1. 通过Playwright MCP导航至tiktok.com
  2. 点击登录并选择邮箱/密码选项
  3. 从canifi-env中读取凭据并输入
  4. 若出现验证码(CAPTCHA),通知用户完成
  5. 若启用了双因素认证(2FA),通过iMessage通知用户
  6. 验证是否可访问首页内容
  7. 维持会话Cookie

Error Handling

错误处理

  • Login Failed: Try alternative login methods
  • Session Expired: Re-authenticate automatically
  • CAPTCHA Required: Notify user to complete manually
  • 2FA Required: iMessage for verification code
  • Upload Failed: Check video format and duration
  • Rate Limited: Wait before continuing actions
  • Content Removed: Check community guidelines
  • Account Restricted: Notify user of status
  • 登录失败:尝试其他登录方式
  • 会话过期:自动重新认证
  • 需要验证码:通知用户手动完成
  • 需要双因素认证:通过iMessage发送验证码请求
  • 上传失败:检查视频格式和时长
  • 受限访问:等待后再继续操作
  • 内容被移除:检查社区规范
  • 账号受限:通知用户账号状态

Self-Improvement Instructions

自我改进说明

When encountering new TikTok features:
  1. Document new UI elements
  2. Add support for new video features
  3. Log successful upload patterns
  4. Update for Creator Center changes
当遇到TikTok新功能时:
  1. 记录新的UI元素
  2. 添加对新视频功能的支持
  3. 记录成功的上传模式
  4. 根据创作者中心的变化进行更新

Notes

注意事项

  • TikTok web has limited features vs app
  • Video length limits vary by account
  • Sounds library differs by region
  • Creator Fund requires eligibility
  • Algorithm favors consistent posting
  • Duet/Stitch features in app only
  • Live streaming requires followers threshold
  • TikTok网页版功能比APP少
  • 视频时长限制因账号而异
  • 音效库因地区不同而有差异
  • 创作者基金需要满足资格要求
  • 算法偏好持续发布内容
  • 合拍/拼接功能仅在APP中可用
  • 直播需要达到粉丝门槛