2026-07-08 18:21:44 +02:00
|
|
|
"""``tiktok.*`` namespace: platform-native TikTok data verbs."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
feat(tiktok): add tiktok.comments verb for public comment scraping
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.
2026-07-09 18:35:26 +02:00
|
|
|
from app.capabilities.tiktok.comments import definition as _comments # noqa: F401
|
2026-07-08 18:21:44 +02:00
|
|
|
from app.capabilities.tiktok.scrape import definition as _scrape # noqa: F401
|
2026-07-09 18:52:56 +02:00
|
|
|
from app.capabilities.tiktok.trending import definition as _trending # noqa: F401
|
2026-07-09 18:00:40 +02:00
|
|
|
from app.capabilities.tiktok.user_search import definition as _user_search # noqa: F401
|