xiaohongshu
xiaohongshu
download-all-transcripts
Download transcripts for all data folders sequentially. Use for overnight batch processing or when you need to download pending transcripts across all channels and collections.
Full skill instructions
Why? Manually downloading transcripts folder-by-folder is tedious and error-prone. This skill automates overnight batch processing across all channels and collections with built-in rate limiting and resumability.
# Run from repository root - handles everything automatically
./scripts/download_all_transcripts.sh
That's it. The script finds all folders with videos.csv, downloads pending transcripts, and resumes safely if interrupted.
Before running, ensure:
data/ folder contains at least one subfolder with a videos.csv filetranscript-download CLI is installed (comes with the project's Python package)# Check for valid data folders
ls data/*/videos.csv
[!TIP] If no
videos.csvfiles exist, first runextract-videosorsync-all-channelsto populate them.
./scripts/download_all_transcripts.sh
The script will:
data/ containing videos.csv<folder>/transcripts/[!CAUTION] This is a long-running operation. For a channel with 500 videos, expect 8+ hours. Run overnight or in a
tmux/screensession.
The script outputs real-time progress:
📝 YTScribe - Download All Transcripts
=======================================
Started at: Thu Dec 26 09:00:00 PST 2024
Delay between videos: 60s
Found 12 folders with videos.csv
────────────────────────────────────────
[1/12] Processing: lex-fridman
CSV: /path/to/data/lex-fridman/videos.csv
Output: /path/to/data/lex-fridman/transcripts
On successful completion:
✅ All transcripts downloaded!
Finished at: Thu Dec 26 17:30:00 PST 2024
Summary of folders processed:
- lex-fridman: 342 transcripts
- huberman-lab: 156 transcripts
...
On interruption or IP block:
Simply run the script again. It automatically skips videos where transcript_downloaded=True in the CSV.
Transcripts are saved as markdown with YAML frontmatter:
data/huberman-lab/
├── videos.csv
└── transcripts/
├── 2024-01-15-abc123.md
├── 2024-01-20-def456.md
└── ...
Each transcript file contains:
---
video_id: abc123
title: "Sleep Optimization Toolkit"
channel: Huberman Lab
published_at: 2024-01-15
duration: PT2H15M30S
---
[Transcript content here...]
| Problem | Cause | Solution |
|---|---|---|
🛑 IP BLOCKED message | YouTube detected automated requests | Switch VPN server, wait 1-2 hours, then resume |
No videos.csv files found | Empty or missing data folders | Run extract-videos or sync-all-channels first |
| Script exits immediately | No pending transcripts | Check CSVs - all may already be downloaded |
transcript-download: command not found | CLI not installed | Run pip install -e . from repo root |
| Partial download (some videos skipped) | Videos without transcripts/captions | Check YouTube - video may have no captions available |
Running without checking disk space - Transcripts are small (~50KB each), but 10,000 videos = ~500MB. Verify space before overnight runs.
Interrupting during a download - Safe to Ctrl+C between videos. If you interrupt mid-download, that video's transcript may be incomplete. The CSV won't mark it as downloaded, so it will retry.
Running multiple instances - Don't run the script twice simultaneously. The 60s delay assumes single-threaded operation to respect rate limits.
Expecting instant results - The 60s delay is intentional. Faster rates trigger IP blocks. Plan for overnight runs.
Before considering batch download complete:
🛑 IP BLOCKED errors (or resolved by VPN switch).md files have valid contenttranscript_downloaded column reflects actual downloads| Scenario | Use |
|---|---|
| Download ALL pending transcripts across all channels | download-all-transcripts (this skill) |
| Download transcripts for a single specific folder | download-transcripts --folder <name> |
| Need fine-grained control over which videos | download-transcripts with filters |
DELAY variable)transcript_downloaded column in each CSVtranscript-download CLI from project's Python packagexiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience