Install
openclaw skills install tiktok-downloaderDownload TikTok videos by URL or hashtag. Handles 403 errors, cookies, and user-agent rotation. Use for downloading TikTok videos, batch downloading from a list of URLs, or saving TikTok content for offline use.
openclaw skills install tiktok-downloaderThis skill provides a robust workflow for downloading TikTok videos, overcoming common anti-bot measures like 403 Forbidden errors and login requirements.
To download a specific TikTok video, use the provided script:
/home/ubuntu/skills/tiktok-downloader/scripts/download_tiktok.sh <VIDEO_URL> [OUTPUT_DIR]
If yt-dlp fails with a 403 error, follow these steps:
/home/ubuntu/.browser_data_dir).For multiple videos:
urls.txt).yt-dlp with the following recommended flags:
yt-dlp --no-warnings \
--cookies-from-browser "chromium:/home/ubuntu/.browser_data_dir" \
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \
--add-header "Referer:https://www.tiktok.com/" \
-o "%(uploader)s - %(title).80s.%(ext)s" \
--batch-file urls.txt
%(uploader)s - %(title).80s.%(ext)s to keep filenames organized and avoid filesystem length limits.sleep between downloads to avoid IP bans.