tiktok
$
npx mdskill add sigcli/sigcli/tiktokProvides authenticated TikTok cookies for scraping, downloading, or API access
- Solves the need for TikTok login cookies for tools requiring authentication
- Uses sigcli to manage and retrieve cookies from www.tiktok.com
- Triggers when user requests TikTok cookies or mentions TikTok-related tools
- Delivers cookies via command line or environment variables for immediate use
SKILL.md
.github/skills/tiktokView on GitHub ↗
--- name: tiktok description: 'Provide authenticated cookies for TikTok (www.tiktok.com). Use this skill whenever the user needs TikTok cookies for scraping tools, downloaders, or needs to authenticate with TikTok services. Trigger when the user mentions TikTok, tiktok cookies, or wants to use tools that require TikTok login cookies.' --- # TikTok Skill (Cookie Provider) This skill provides authenticated cookies for TikTok via sigcli. | Provider | Domain | Use case | | -------- | -------------- | --------------------------------- | | `tiktok` | www.tiktok.com | Scraping, downloading, API access | ## Setup ### 1. Configure provider Add the config from `references/provider-config.yaml` to `~/.sig/config.yaml` under `providers:`. Adjust `networkProxy` to your proxy URL if needed (TikTok is blocked in China). ### 2. Login ```bash sig login tiktok --mode visible ``` Opens browser with proxy, navigate to TikTok and log in (or sign up). ### 3. Verify ```bash sig status tiktok # Should show: valid: true ``` ## Get cookies ```bash sig get tiktok --no-redaction --format value # Output: sessionid=xxx; tt_chain_token=yyy; ... ``` ## Usage with TikTokDownloader ```bash # Copy cookie to clipboard for TikTokDownloader's "从剪贴板读取" mode sig get tiktok --no-redaction --format value | pbcopy # Or inject as environment variable sig run tiktok -- python main.py ``` ## Validation - Endpoint: `https://www.tiktok.com/setting` - Logged in: returns 200 (settings page) - Not logged in: 302 redirect to `/foryou` - No validateRule needed (redirect detection is sufficient) ## Notes - TikTok requires proxy access from China — `networkProxy: socks5://127.0.0.1:3333` - First login may take longer (registration + verification) - Use `--mode visible` for first login; subsequent logins can use auto mode - TTL is set to 2h; use `sig watch add tiktok` for auto-refresh
More from sigcli/sigcli
- bilibiliInteract with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos. Use this skill whenever the user mentions Bilibili, B站, wants to browse Bilibili content, search Bilibili videos, read Bilibili comments, look up Bilibili users, or interact with Bilibili content. Also trigger when the user pastes a Bilibili URL (e.g. bilibili.com/video/BV...) or mentions a BV ID.
- douyinProvide authenticated cookies for Douyin (抖音/TikTok China) — two providers: douyin (www.douyin.com for scraping) and douyin-live (live.douyin.com for livestream). Use this skill whenever the user needs Douyin cookies for scraping tools like DouYin_Spider, or needs to authenticate with Douyin services. Trigger when the user mentions 抖音, Douyin, TikTok China, douyin cookies, or wants to use tools that require Douyin login cookies.
- hackernewsInteract with Hacker News (news.ycombinator.com) — browse top, new, and best stories, read item details and comment threads, look up user profiles, and search posts via Algolia. Use this skill whenever the user mentions Hacker News, HN, YCombinator news, ycombinator.com, news.ycombinator.com, wants to browse tech news, read HN discussions, search HN posts, or look up HN users. Also trigger when the user pastes an HN URL (e.g. news.ycombinator.com/item?id=12345). Keywords: Hacker News, HN, YC, ycombinator, tech news, Show HN, Ask HN, HN front page.
- linkedinInteract with LinkedIn — view your profile, browse other profiles, read the feed, search jobs/posts/people, get job details, create posts, like/unlike posts, comment, send connection requests, and follow/unfollow users. Use this skill whenever the user mentions LinkedIn, wants to search for jobs or people, read their LinkedIn feed, view a profile, get job details, create a post, like or comment on content, send a connection request, or follow someone. Also trigger when the user pastes a LinkedIn URL (e.g. linkedin.com/in/..., linkedin.com/jobs/view/...) or mentions LinkedIn networking.
- msteamsInteract with Microsoft Teams — send and read messages, search conversations, look up people, check calendar, get meeting transcripts, and manage chats. Use this skill whenever the user mentions Teams, MS Teams, Microsoft Teams, wants to send a message, read chat history, search conversations, look up a colleague, check their calendar, find meeting recordings or transcripts, see direct reports or manager, or do anything involving Teams communication. Also trigger when the user asks about scheduling, org chart, people search, or wants to message someone.
- redditInteract with Reddit — browse subreddits, read posts and comments, search content, view user profiles, post comments, vote, save posts, subscribe to subreddits. Use this skill whenever the user mentions Reddit, r/, subreddit, wants to browse Reddit posts, read Reddit discussions, search Reddit, look up Reddit users, or interact with Reddit content. Also trigger when the user pastes a Reddit URL (e.g. reddit.com/r/programming/...) or mentions a subreddit name.
- sigcliGuide Claude to use SigCLI correctly — check auth, login, get credentials, configure providers, and onboard new websites. Trigger when using sig commands, editing ~/.sig/config.yaml, or needing authenticated API access.
- v2exInteract with V2EX (v2ex.com) — browse hot and latest topics, read topic details and replies, search posts, create topics, reply to discussions, thank posts, favorite topics/nodes, follow members, daily check-in. Use this skill whenever the user mentions V2EX, v2ex.com, wants to browse tech forum topics, read V2EX discussions, search V2EX posts, check V2EX notifications, create or reply to V2EX topics, or look up V2EX users/nodes. Also trigger when the user pastes a V2EX URL (e.g. v2ex.com/t/12345), mentions a V2EX node name, or asks about Chinese tech community discussions. Keywords: V2EX, v2ex, 论坛, 技术社区, 节点, 主题, 回复.
- xInteract with X (Twitter) — view profiles, read tweets and threads, search posts, check trending topics, view followers, post tweets, like, retweet, follow users, and bookmark tweets. Use this skill whenever the user mentions X, Twitter, tweets, @handles, wants to browse X posts, search X, view user profiles, or interact with X content. Also trigger when the user pastes an x.com or twitter.com URL.
- xiaohongshuInteract with Xiaohongshu (小红书, RED, Little Red Book) — search notes, read note details, view comments, browse user profiles and posts, get home feed. Use this skill whenever the user mentions Xiaohongshu, 小红书, RED, RedNote, Little Red Book, wants to search for lifestyle/beauty/travel content, read XHS discussions, look up XHS users, or browse trending notes. Also trigger when the user pastes a xiaohongshu.com URL (e.g. xiaohongshu.com/explore/noteid) or mentions an XHS note ID.