- YouTube video/playlist download as MP3 (yt-dlp) - Audio transcription with OpenAI (gpt-4o-transcribe, whisper-1) - Translation with GPT-4o-mini (chunking for long texts) - Web interface with progress bars and drag & drop - CLI and REST API interfaces - Linux shell scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
553 B
Bash
21 lines
553 B
Bash
#!/bin/bash
|
|
# Download YouTube video/playlist as MP3
|
|
# Usage: ./download.sh <url> [output_dir]
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
URL="$1"
|
|
OUTPUT_DIR="${2:-./output}"
|
|
|
|
if [ -z "$URL" ]; then
|
|
echo "Usage: ./download.sh <youtube_url> [output_dir]"
|
|
echo ""
|
|
echo "Examples:"
|
|
echo " ./download.sh 'https://youtube.com/watch?v=VIDEO_ID'"
|
|
echo " ./download.sh 'https://youtube.com/playlist?list=PLAYLIST_ID'"
|
|
echo " ./download.sh 'https://youtube.com/watch?v=VIDEO_ID' ./my-folder"
|
|
exit 1
|
|
fi
|
|
|
|
npm run cli download "$URL" -o "$OUTPUT_DIR"
|