# Douyin Browser Capture This tool drives a real Playwright Chromium session, lets a human log into Douyin, captures the loaded profile and work pages, and can sync the captured bundle into StoryForge's existing `/v2/douyin/accounts/sync` endpoint. ## Install ```bash cd /Users/kris/code/StoryForge-gitea/scripts/douyin-browser-capture npm install npx playwright install chromium ``` ## Run ```bash cd /Users/kris/code/StoryForge-gitea/scripts/douyin-browser-capture npm run capture -- \ --profile-url https://www.douyin.com/user/your_account \ --storyforge-username kris \ --storyforge-password 'Asd123456.' ``` The browser uses a persistent state directory under `~/.storyforge/douyin-playwright`, so Douyin login can survive between runs. ## What it captures - current profile page JSON blobs extracted from `