1.0.3 • Published 10 months ago
@endcycles/n8n-nodes-youtube-transcript v1.0.3
@endcycles/n8n-nodes-youtube-transcript
This node allows you to fetch transcripts from YouTube videos using yt-dlp.
Docker Installation
If you're running n8n in Docker, you need to modify your Dockerfile to include Python and yt-dlp:
FROM n8nio/n8n
USER root
# Install Python and yt-dlp dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp \
&& chmod a+rx /usr/local/bin/yt-dlp
# Install the community node
RUN cd /usr/local/lib/node_modules/n8n && \
npm install @endcycles/n8n-nodes-youtube-transcript
USER nodeSave this as Dockerfile and rebuild your n8n container:
docker build -t my-n8n-with-yt .
docker-compose up -d # If using docker-composeLocal Installation
Install Python and yt-dlp:
# Linux/Mac sudo apt-get install python3 python3-pip # For Ubuntu/Debian # or brew install python3 # For Mac # Then install yt-dlp sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp sudo chmod a+rx /usr/local/bin/yt-dlpInstall the node in n8n:
- Open your n8n instance
- Go to Settings > Community Nodes
- Click on "Install a community node"
- Enter
@endcycles/n8n-nodes-youtube-transcript - Click Install
- Restart n8n
Usage
- Add the "YouTube Transcript" node to your workflow
- Enter the YouTube video ID or URL
- Set the path to yt-dlp binary (default: 'yt-dlp')
- Execute the workflow to get the video transcript
Troubleshooting
If you see the error Failed to set up yt-dlp: Command failed: ... can't execute 'python3': No such file or directory, make sure Python 3 is installed in your environment. For Docker users, follow the Docker installation instructions above.