Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 971 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 971 Bytes

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.