mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
Comments load over a signed /api/comment/list XHR that TikTok serves to anonymous sessions once the comments panel is opened (unlike profile-video and general-search feeds), so this is a reliable verb. Given video URLs it returns CommentItems (text, author, likes, reply counts; replies carry repliesToId), deduped per video, capped, and degraded to an ErrorItem for empty/withheld videos or a bad_url ErrorItem for non-video inputs. Generalizes the browser capture over a pluggable interaction step so the comments flow (open panel, scroll the panel to paginate) reuses the same warm+capture scaffolding as listing/user-search. Billed per comment on a new TIKTOK_COMMENT meter (TIKTOK_MICROS_PER_COMMENT, matching the per-comment market), surfaced on the chat subagent alongside tiktok.scrape/user_search.
7 lines
353 B
Python
7 lines
353 B
Python
"""``tiktok.*`` namespace: platform-native TikTok data verbs."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.capabilities.tiktok.comments import definition as _comments # noqa: F401
|
|
from app.capabilities.tiktok.scrape import definition as _scrape # noqa: F401
|
|
from app.capabilities.tiktok.user_search import definition as _user_search # noqa: F401
|