vtt to srt subtitles converter package
Project description
vtt_to_srt.py
useful python script for Python 3.7 (you can get version for Python 2.7 here: https://github.com/jansenicus/vtt-to-srt.py)
convert vtt files to srt subtitle format
Installation:
pip install vtt_to_srt3
Usage from terminal:
python -m vtt_to_srt pathname [-r]
pathname - a file or directory with files to be converted
-r - walk path recursively
Usage as a lib:
# convert vtt file
from vtt_to_srt import vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
# recursively convert all vtt files in directory
from vtt_to_srt import vtts_to_srt
path = '/path/to/directory'
vtts_to_srt(path, rec = True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vtt_to_srt3-0.1.7.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for vtt_to_srt3-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626fb141eba67678bb5150dfca9a54375b62425ff7aea98971436fb7d8053a06 |
|
MD5 | f6326a20dd05daea0fb0d776ccad23ac |
|
BLAKE2b-256 | af6c550e39c2c3bd9ea42c67bd1321642f373541ee515236c0864978c62307e0 |