Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSON SRT Reader

A simple script to read JSON SRT files and save them to output.txt.

You can also print the content to the console if you want.

Usage

  1. Place your JSON SRT file in the same directory as this script and name it data.json.

  2. Run the script using Python:

    python main.py
  3. The output will be saved to output.txt in the same directory.

Example JSON SRT Format

    "segments": [
            {
                "start": 0.773,
                "end": 7.228,
                "text": " Hi, you're using the JSON SRT reader script. ",
            },
            {
                "start": 7.229,
                "end": 14.456,
                "text": " How is it? ",
            },
            {
                "start": 14.457,
                "end": 21.684,
                "text": "Computers are great, aren't they? ",
            }
    ]

About

Reads subtitle files in the form of json

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages