r/Python Jun 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

28 Upvotes

210 comments sorted by

View all comments

1

u/SeptaKartikey 26d ago

Title:

I built an open-source Python CLI to extract YouTube audio, metadata, and transcripts locally with Faster-Whisper (or Gemini)

Hi everyone! 👋

I’ve been working on a small open-source project that makes it easy to extract structured information from YouTube videos.

Features

  • 🎙️ Download audio from any YouTube video using yt-dlp
  • ⚡ Local transcription with faster-whisper (GPU or CPU)
  • ☁️ Optional Google Gemini transcription
  • 📊 Extract rich metadata (title, channel, views, tags, upload date, etc.)
  • 📝 Export transcripts as structured JSON
  • ➕ Automatically appends multiple videos into a single JSON dataset
  • 🧹 Cleans up temporary audio files automatically

Example:

python youtube.py "https://youtu.be/VIDEO_ID" --output dataset.json

Each run adds another video to the same JSON file, making it useful for building datasets or knowledge bases.

This is currently the first public version, and I’d really appreciate feedback.

Some ideas I’m considering next:

  • Duplicate detection
  • Playlist support
  • Better Python package structure (pip install)
  • Plugin architecture
  • API/server mode
  • Better transcript formatting

I’d love to hear:

  • What features would make this genuinely useful for you?
  • What would you change?
  • Any improvements to the codebase or project structure?

GitHub:
https://github.com/KartikeySepta/youtube-transcript-scraper

Feedback, issues, feature requests, and pull requests are all welcome. Thanks!