vtt2text

A small package to clean up the content of a subtitle file to text


Keywords
subtitles-to-text, vtt-subtitles, vtt-to-text
License
MIT
Install
pip install vtt2text==0.1.3

Documentation

vtt2text

vtt2text pypi version Python MIT Size Contributors

Small scripts to clean up the content of a subtitle file .vtt to plain text.

Install

pip install vtt2text

Usage

  • vtt2text.clean(filepath): return a clean text containing content of vtt file input.
  • vtt2text.to_file(filepath): save clean content to a text file. By default, the output file has extension .txt and the same name with the input file.

Before:

vtt file

After:

txt file

Example

An example is at test.py.