项目作者: nyukhalov

项目描述 :
SRT Subtitles Text Extractor
高级语言: Python
项目地址: git://github.com/nyukhalov/srt-text.git
创建时间: 2017-08-06T14:54:30Z
项目社区:https://github.com/nyukhalov/srt-text

开源协议:MIT License

下载


SRT Text EXTractor

A tool for extracting text from SRT subtitles

Requirements

  • Python2

Installation

Manual

  1. git clone https://github.com/nyukhalov/srt-text.git
  2. sudo python setup.py install

Using pip

  1. sudo pip install git+https://github.com/nyukhalov/srt-text.git

Usage

  1. srt-text <PATH_TO_SRT_FILE>

Example

For the subtitles below

  1. 1
  2. 00:02:17,440 --> 00:02:20,375
  3. Senator, we're making
  4. our final approach into Coruscant.
  5. 2
  6. 00:02:20,476 --> 00:02:22,501
  7. Very good, Lieutenant.

outcome will be

  1. Senator, we're making our final approach into Coruscant. Very good, Lieutenant.