vtt to srt subtitles converter package
Project description
vtt_to_srt.py
useful python script for Python 3.7
convert vtt files to srt subtitle format
Installation:
pip install --user vtt_to_srt3
Usage from terminal:
python vtt_to_srt.py3 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.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for vtt_to_srt3-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0adb1d99f11176f7955bef07cc1dde5b1b0bfb457dc09f657115b88c7cca87 |
|
MD5 | 2831cce8935f167d804507164fcacf57 |
|
BLAKE2b-256 | f0efe0593961ac41f632213986529d9d20084965d6172322d072aa9f56579af4 |