YT-Toolkit
YT-Toolkit is a Python library for retrieving and processing YouTube data. It provides an easy-to-use interface for working with various YouTube functionalities, including:
- API Interactions: Retrieve video details, channel metrics, and search for videos using the YouTube Data API.
- Web Scraping: Extract elements such as heatmaps and page content using Selenium and BeautifulSoup.
- Transcript Processing: Retrieve and analyze YouTube transcripts to find contiguous matching segments.
- Heatmap Analysis: Process SVG heatmap data to generate insights on viewer rewatch.
Features
-
YouTube API Module:
Easily authenticate and retrieve video and channel data using the official YouTube API.
-
Scraping Module:
Use Selenium and BeautifulSoup to extract dynamic content from YouTube pages.
-
Transcript Module:
Retrieve subtitles using the youtube_transcript_api and perform text analysis to identify key segments.
-
Heatmap Module:
Process SVG heatmap path data to map viewer rewatch moments.
Installation
You can install yt-toolkit using pip:
pip install yt-toolkit