Skip to content

flameastro/transcript-youtube-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stars Forks Issues Python

📜 transcript-youtube-video

Extract transcripts (subtitles) from YouTube videos in seconds

Supports timestamps • Saves to transcript.txt • Simple CLI

Demo


✨ Features

  • 📜 Extract subtitles from YouTube videos
  • ⏱️ Optional timestamps
  • 📄 Saves the transcript to a .txt file
  • ⚡ Fast and easy to use
  • 🐍 Written in Python

🚀 Quick Start

Clone the repository:

git clone https://github.com/flameastro/transcript-youtube-video.git
cd transcript-youtube-video

Install the dependencies:

pip install playwright
playwright install

Run the project:

python main.py

If that doesn't work:

python3 main.py

💻 Example

After running the program:

Paste the YouTube URL:
>>> https://youtu.be/xxxxxxxx

Include timestamps? (y/n):
>>> y

The program creates:

transcript.txt

Example output:

00:00 Welcome back everyone!

00:07 Today we're going to...

00:15 Let's get started...

📸 Screenshots

With timestamps

Transcript with timestamps

Without timestamps

Transcript without timestamps


⚠️ Limitations

The generated file may be empty if:

  • The video has no subtitles.
  • The creator disabled captions.
  • The video contains very little speech.
  • The video is extremely long.

📦 Requirements

  • Python 3.10+
  • Git
  • Playwright

🤝 Contributing

Contributions are welcome!

If you have an idea for an improvement, feel free to open an Issue or submit a Pull Request.


⭐ Support

If this project helped you, consider giving it a ⭐ on GitHub.

It helps more people discover the project.


📄 License

This project is licensed under the MIT License.

About

A bot that collects transcripts of YouTube videos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages