Skip to main content

webvtt subtitle parser to traversable data struct

Project description

pywebvtt

to parse WebVTT subtitle file into a traversable data structure

pypi/pywebvtt

  • to run tests poetry install && poetry run pytest

  • to run example poetry install && poetry run python examples/parse-sample.py

  • sample usage pip install pywebvtt and

import pywebvtt


scenes = pywebvtt.ParseFile('sample.vtt')
for s in scenes:
    # every scene has: s.start, s.end, s.start_millisec, s.end_millisec, s.transcript
    print(s.string())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywebvtt-0.2.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

pywebvtt-0.2.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page