1.0.3 • Published 10 months ago

@endcycles/n8n-nodes-youtube-transcript v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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 node

Save this as Dockerfile and rebuild your n8n container:

docker build -t my-n8n-with-yt .
docker-compose up -d  # If using docker-compose

Local Installation

  1. 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-dlp
  2. Install the node in n8n:

    1. Open your n8n instance
    2. Go to Settings > Community Nodes
    3. Click on "Install a community node"
    4. Enter @endcycles/n8n-nodes-youtube-transcript
    5. Click Install
    6. Restart n8n

Usage

  1. Add the "YouTube Transcript" node to your workflow
  2. Enter the YouTube video ID or URL
  3. Set the path to yt-dlp binary (default: 'yt-dlp')
  4. 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.

License

MIT

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago