vuanhtuan1012 / vtt2text

small scripts to clean up the content of a vtt file to plain text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

small scripts to clean up the content of a vtt file to plain text

License:MIT License


Languages

Language:Python 100.0%