langchain_yt_tools logo

langchain_yt_tools

Free

Langchain tools to search/extract/transcribe text transcripts of Youtube videos ![GitHub Repo stars](https://img.shields.io/github/stars/venuv/langchain_yt_tools?style=social)

FreeFree tier
Inputs: textOutputs: text, url
Type
Open Source

About langchain_yt_tools

Langchain_yt_tools is an open-source Python package providing two custom LangChain tools for searching and transcribing YouTube videos. CustomYTSearchTool retrieves the top video URLs for a given person's name, while CustomYTTranscribeTool downloads and transcribes those videos, outputting the text transcripts to a JSON file. The project includes a demo script that transcribes the top 3 results for a search query (e.g., 'Laszlo Bock') and requires YouTube API authentication on first use. Some functionality from this repository has been integrated into the main LangChain branch. Licensed under GPL-3.0 and built entirely in Python.

Key Features

CustomYTSearchTool: Search YouTube for videos featuring a person name and return top URLs
CustomYTTranscribeTool: Transcribe video content to text and save to transcripts.json
Easy integration with LangChain agents and workflows
Demo script provided to quickly test transcription of top 3 video results
Some functionality already merged into LangChain main branch
Open source under GPL-3.0 license, written in Python

Pros & Cons

Pros
  • Free and open source with a permissive GPL-3.0 license
  • Provides both search and transcription functionality in one package
  • Designed to work seamlessly with LangChain, a popular AI framework
  • Includes a ready-to-run demo for quick experimentation
  • Active GitHub repository with community engagement (76 stars, 9 forks)
Cons
  • Requires YouTube API authentication (OAuth) before first use
  • Search functionality is limited to person names only (not general keywords)
  • Creates temporary MP4 files that need manual cleanup between runs
  • No concurrent transcription support; processes videos sequentially
  • Outputs all transcripts to a single JSON file, which may not scale for large batches
  • No official releases or package published on PyPI; installation via requirements.txt

Best For

Building AI agents that search and summarize YouTube video contentExtracting text transcripts from YouTube videos for analysis or indexingAutomating retrieval of video information related to specific peopleIntegrating YouTube video processing into larger LangChain pipelines

FAQ

What is langchain_yt_tools?
It is an open-source repository offering two custom LangChain tools: one to search YouTube videos by a person's name and another to transcribe those videos into text, outputting the results as a JSON file.
How do I install and use langchain_yt_tools?
Clone the repository and run 'pip install -r requirements.txt'. Then execute 'python yt_tools.py' to run the demo, which transcribes the top 3 YouTube video results for 'Laszlo Bock'. You will need to authenticate with your YouTube credentials the first time.
What are the two custom tools included?
CustomYTSearchTool searches for YouTube videos featuring a specified person name and returns the top video URLs. CustomYTTranscribeTool downloads and transcribes those videos, saving the transcripts to transcripts.json.
Is langchain_yt_tools still maintained?
The repository had 11 commits as of its latest update. Some of its functionality has been integrated into the main LangChain branch, but the original repo is available for use and modification under the GPL-3.0 license.