This project provides a REST API to fetch all transcripts of a YouTube channel using caching, proxies, and rate-limiting.
- Clone the repo
- Install dependencies:
pip install -r requirements.txt
- Set your YouTube API key:
export YOUTUBE_API_KEY="YOUR_KEY"
- Run the app:
- Access the API:
GET http://localhost:5000/transcripts?channel=Drawfee
- Uses
youtube_transcript_apiwith optional proxies to avoid IP blocks. - Caches channel IDs, video IDs, and transcripts locally in
cache.json. - Supports free deployment on Render or any Python web host.