当前位置: 首页 > Skill >

tiktok-profile-videos

tiktok-profile-videos

1.0.0 2026.11.23 浏览:898
获取Skill文件查看使用说明
作者:陈辰许可证:
本文目录展开

TikTok — Profile Videos

TikTok username → user profile info + paginated video list with full metadata

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Extract the video list and profile metadata for a given TikTok user using the /api/post/item_list/ endpoint triggered by navigating to their profile page.

Prerequisites

  • Browser is open and can access https://www.tiktok.com
  • No login required for public profiles
  • Browser must use a non-HK proxy (TikTok has shut down in Hong Kong)

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.

Network Capture: Profile video list (parameters injected via URL navigation)

/api/post/item_list/ requires TikTok's dynamic signing and the user's secUid (internal ID). Navigate to the profile page — TikTok's JS resolves the secUid and triggers the signed request automatically:

  1. navigate https://www.tiktok.com/@{username}
  2. wait stable
  3. network requests --type xhr,fetch --filter "post/item_list"
  4. network request <id>

Endpoint characteristic: URL contains /api/post/item_list/ with secUid={secUid}&cursor=0

Note: The secUid is a long internal identifier (e.g., MS4wLjABAAAA-VASjiXTh7wDDyXvjk10VFhMWUAoxr8bgfO1kAL1-9s) visible in the captured request URL — record it for pagination requests.

Error handling: If no matching request appears, verify the profile page loaded (screenshot). Private accounts return an empty itemList. If the page shows a region block, switch to a non-HK proxy browser.

Output example:

{
  "cursor": "1778468677570", // timestamp-based cursor for next page
  "hasMore": true,           // false when all videos loaded
  "itemList": [
    {
      "id": "7212410220977392938",
      "desc": "Daily Push Up Workout🚀#fitness",
      "createTime": 1679270124,
      "isAd": false,
      "isPinned": false,
      "isSponsored": false,
      "locationCreated": "US",
      "author": {
        "id": "6803405475100181510",
        "uniqueId": "marcusriosofficial",
        "nickname": "Marcus Rios",
        "verified": false,
        "signature": "Former NFL Athlete 🏈n📧marcusriosofficial@gmail.com",
        "bioLink": null,
        "avatarThumb": "https://...",
        "privateAccount": false
      },
      "authorStats": {
        "followerCount": 423500,
        "followingCount": 50,
        "heart": 10000000,
        "videoCount": 1277,
        "diggCount": 869
      },
      "authorStatsV2": {
        "followerCount": "423500",
        "followingCount": "50",
        "heart": "10000000",
        "videoCount": "1277"
      },
      "stats": {
        "diggCount": 367500,
        "shareCount": 6041,
        "playCount": 4500000,
        "commentCount": 942,
        "collectCount": 56691
      },
      "video": {
        "duration": 48,
        "height": 1280,
        "width": 720,
        "cover": "https://...",
        "definition": "720p",
        "format": "mp4"
      },
      "music": {
        "id": "7176546707423889410",
        "title": "Trap Money so Big (Remix)",
        "authorName": "Iqbal12",
        "original": false,
        "coverMedium": "https://..."
      },
      "textExtra": [{"hashtagId": "9261", "hashtagName": "fitness"}],
      "effectStickers": [],
      "imagePost": null
    }
  ]
}

To build the webVideoUrl for each item: https://www.tiktok.com/@{item.author.uniqueId}/video/{item.id}

Profile info is available from the first item's author and authorStats fields: followerCount, following, heart total, video count, bio, verified status.

Network Capture: Profile video list pagination (page 2+)

After reading page 1, scroll down to load more videos:

  1. scroll down
  2. wait stable
  3. network requests --type xhr,fetch --filter "post/item_list"
  4. Find the new request (cursor value changed from the previous page's cursor)
  5. network request <id>

Termination: hasMore is false in response, or itemList is empty.

Pagination

DOM Pagination: Scroll triggers new post/item_list requests with timestamp-based cursor. Each page returns 16 items. Termination: hasMore === false or empty itemList.

Success Criteria

itemList.length >= 1 and first item has non-null id, stats.playCount, author.uniqueId, authorStats.followerCount

Known Limitations

  • Requires non-HK proxy (TikTok shut down in Hong Kong)
  • post/item_list requires dynamic signing + secUid resolved by TikTok's JS — always use navigate + network capture
  • Private accounts return empty itemList
  • authorStats.heartCount may overflow to negative for accounts with very high like counts — use authorStats.heart instead
  • followers/following lists are not available via this capability (separate scraper needed, requires login)

Execution Efficiency

  • Batch orchestration: Loop through multiple usernames serially in one session; add 2–3s between profile navigations.
  • Test before batch execution: Test with 1 username first before running the full list.
  • Error resumption: Save results profile-by-profile; resume from the failed username on error.

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/tiktok-scraper-tiktok-profile-videos.memory.md

Before execution: If the file exists, read it first — it records unexpected situations from past executions; adjust strategy accordingly.

After execution: If an unexpected situation occurs (strategy failed, page redesigned, anti-scraping upgraded), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • TikTok — Profile Videos
    • Language
    • Objective
    • Prerequisites
    • Pre-execution Checks
      • 1. Tool Readiness
    • Capability Components
      • Network Capture: Profile video list (parameters injected via URL navigation)
      • Network Capture: Profile video list pagination (page 2+)
    • Pagination
    • Success Criteria
    • Known Limitations
    • Execution Efficiency
    • Experience Notes
  • 项目或源文件

相关 Skill

更多
Douyin (TikTok China) User Profile API Douyin (TikTok China) User Profile API 通过 JustOneAPI 使用 secUid 调用 GET /api/douyin/get-user-detail/v3,获取抖音(中国版 TikTok)用户资料。
抖音趋势洞察 抖音趋势洞察 当用户需要做抖音趋势洞察、抖音趋势分析、热点观察、内容方向判断、趋势线索归纳或营销灵感整理时使用。面向内容运营、品牌调研和创作者。
全网作品数据抓取分析工具(抖音小红书视频号快手B站通用) 全网作品数据抓取分析工具(抖音小红书视频号快手B站通用) 抓取抖音、小红书、B站、快手、视频号五大平台作品数据(播放/点赞/评论/分享/收藏),完全免费,无需登录/API Key/付费。支持飞书多维表格同步。配置飞书请说配置飞书,抓取数据请直接给链接进行解析。
🎬 short-video — 短视频全域爆款内容生成器 🎬 short-video — 短视频全域爆款内容生成器 短视频全域爆款内容生成器。对标抖音、视频号、小红书、B站全平台流量创作逻辑,面向全平台短视频博主、自媒体达人、知识创作者、带货达人、内容运营,提供一站式自媒体全流程创作AI技能。涵盖多时长短视频完整脚本生成、视频全配套素材自动产出、流量配套文案生成、多创作风格自由切换、批量内容产出五大核心模块,文案接地气、口语化自然流畅,可直接对标拍摄剪辑使用。
短视频选题素材研究 短视频选题素材研究 当用户需要做短视频选题素材研究、短视频脚本素材、口播角度参考、开场钩子观察、竞品内容复盘、评论反馈整理或抖音/快手/小红书选题素材时使用。由社媒数据助手 SocialDataX 提供。